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 | 12 | 6239 | September 3, 2019 | |
| Few questions regarding CRUD and Users. | 3 | 4944 | March 2, 2018 | |
| Storing ID Best Practices -> Relationships in Database | 3 | 6427 | December 30, 2019 | |
| Storing non-auth user data outside of auth0, custom user_id in tokens and multiple id providers for the same user | 3 | 5384 | August 29, 2019 | |
| How to implement Auth0 in a database | 5 | 5232 | May 6, 2021 |