DEV Community

Discussion on: Use Auth0 to secure your NestJS application

Collapse
 
andresmontoyain profile image
Andrés Montoya

Really great! Do you know how I can implement auth0, but instead of saving the user in their database, save it in the database of my application?

Collapse
 
hegelstad profile image
Nikolai Hegelstad

You should do both, use Auth0 as an identity provider, and then tie that user via an unique identifier to the user that you create and store in the database of your application.

Collapse
 
andresmontoyain profile image
Andrés Montoya

Why like that? Is it cheaper and better?