> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Accessing Users

> [card] Recommended: JavaScript SDK for React Native
>
> While this SDK is still supported, we recommend using newer [JavaScript SDK](https://docs.dynamic.xyz/docs/javascript/reference/react-native-quickstart.md), which is optimized for React Native, but also comes with a host of other benefits.

### Overview

When a new user signs up, Dynamic creates a new user record in the database including their general information, and verified credentials. You can access that user via a webhook, or using SDK specific methods.

## User Created Webhook

One of the valid webhook events you can listen to is called `user.created` (learn more about [webhook event types](https://docs.dynamic.xyz/docs/platform/console/webhooks/events.md)).

All you will need to get started is a server that can receive events, and then you can plug in that URL in the Dynamic Console. [Learn more about setting up the webhook step by step here](https://docs.dynamic.xyz/docs/platform/console/webhooks/setup.md).

## SDK Specific Methods

### authSuccess Event

Listen to the authentication success event to access the user right after login:

```ts React Native theme={"system"}
import { dynamicClient } from '<path to client file>';

dynamicClient.auth.on('authSuccess', (user) => {
  console.log('user', user);
});
```

### Accessing the current user

You can read the authenticated user directly from the client:

```ts React Native theme={"system"}
import { dynamicClient } from '<path to client file>';

const user = dynamicClient.auth.authenticatedUser;
console.log('user', user);
```

Or, if you're using our React hooks for client reactivity:

```tsx React Native theme={"system"}
import { useDynamic } from '<path to client file>';
import { View } from 'react-native';

function MyComponent() {
  const { auth } = useDynamic();
  console.log('user', auth.authenticatedUser);
  return <View />;
}
```

## User Format

This user record follows a specific format, which you can read all about in the `User` reference.

One important array inside that user object will be called `verified_credentials`. This is where you'll find information about any and every associated "credential" for the user i.e. email, social, blockchain, passkey.

> [card] [Verified Credentials](https://docs.dynamic.xyz/docs/react-native/users/verified-credential.md)
>
> Learn more about verified credential structure and available fields


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.