You can use the user_id (the sub claim in the token) as a unique identifier for your user. Here is a thread that talks about it:
dan.woda
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Auth0 Custom Database | 11 | 6260 | August 30, 2019 | |
| Few questions regarding CRUD and Users | 2 | 4954 | April 10, 2017 | |
| Storing ID Best Practices -> Relationships in Database | 3 | 6453 | December 30, 2019 | |
| Storing non-auth user data outside of auth0, custom user_id in tokens and multiple id providers for the same user | 2 | 5390 | February 19, 2019 | |
| How to implement Auth0 in a database | 5 | 5243 | May 6, 2021 |