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

# Using an internal user ID

> Learn how to use your internal user ID when integrating Authsignal with Auth0 instead of the default Auth0 user ID.

You may want to configure your Authsignal integration with Auth0 to use an internal user ID instead of defaulting to use the Auth0 user ID.

If you are storing your own internal user ID in Auth0 - for example as [user metadata](https://auth0.com/docs/manage-users/user-accounts/metadata) - then you can pass this in your custom action code snippet.

```javascript theme={null}
const {
  handleAuth0ExecutePostLogin,
  handleAuth0ContinuePostLogin,
} = require("@authsignal/node");

exports.onExecutePostLogin = async (event, api) => {
  const userId = event.user.user_metadata["your_internal_user_id"];

  await handleAuth0ExecutePostLogin(event, api, { userId });
};

exports.onContinuePostLogin = async (event, api) => {
  const userId = event.user.user_metadata["your_internal_user_id"];

  await handleAuth0ContinuePostLogin(event, api, { userId });
};
```

<Warning>
  Passing an internal user ID here is recommended if you're also [tracking
  actions](/api-reference/server-api/track-action) in other parts of your app
  not related to Auth0 login - you should always use a consistent identifier.
</Warning>
