๐ Stablecoin Accounts are live! Learn more
Getting Started
Core Features
- Authentication & Login
- Chains & Networks
- Wallets
- Users & Verified Credentials
- Design & Customization
- Money & Funding
Feature Guides
- Interacting with Wallets
- Headless Mode
- Global Identity
Developer Dashboard
Wallets & Chains Integration
Users & Verified Credentials
Get the user's profile
Here is an example where you can use the user profile to display in a HTML table.
Copy
Ask AI
import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
const UserProfileTable = () => {
const { user } = useDynamicContext();
return (
<table>
<thead>
<tr>
<th>Property</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Email</td>
<td>{user?.email}</td>
</tr>
<tr>
<td>First name</td>
<td>{user?.firstName}</td>
</tr>
<tr>
<td>Last name</td>
<td>{user?.lastName}</td>
</tr>
<tr>
<td>Alias</td>
<td>{user?.alias}</td>
</tr>
<tr>
<td>Job title</td>
<td>{user?.jobTitle}</td>
</tr>
<tr>
<td>Country</td>
<td>{user?.country}</td>
</tr>
</tbody>
</table>
);
};
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.