What is a proper sign up strategy?

GeekForged
10
GeekForged
commented 10 days ago

After reading the documentation and searching through already existing issues, i'm still not sure what the proper process for a sign up strategy would be. For the local strategy, I could see the possibility of abusing the local login function with extra data, or simply rolling another API end point and calling it manually…

I haven't worked with Oauth before, maybe that's where I am falling short, however I would think there would be a way to associate a new login to a new user in my database.

0
GeekForged
10
GeekForged
commented 10 days ago

With a bit more scouring the web, it looks like the preferred method here is to use axios and make requests outside of the auth module.

In addition, on oauth you would likely create a 'local' account without a password and link the social/oauth login to that as a many to one relationship.

This stuff should really be in the documentation though.

0
Informations
QuestionResolved
#c278 - Created 10 days ago