Tour-De / tour-de

A framework for managing community organized bicycle races.
GNU General Public License v3.0
2 stars 0 forks source link

Link Auth0 user to internal DB #14

Open NathanDykstra opened 1 year ago

NathanDykstra commented 1 year ago

Link the Auth0 user to the TourDe database User table

 When you log in with Auth0, you get an ID token back. That ID token will have the Auth0 user ID in it. You can then use that with clearDB.

Or you can add an action that calls an API (that you would write) when a user is first created, grabs your clearDB user ID and adds that to the user’s app_metadata. Then a second action that adds that field to the ID token. Then it is available after login.

https://community.auth0.com/t/question-about-using-auth0-login-and-storing-associated-user-data-into-external-database-for-website-project/79622

NathanDykstra commented 1 year ago

Probably depends upon #16 and #15 in order to test the Auth0 Action - Post Registration