gonzalo-bulnes / simple_token_authentication

Simple (and safe*) token authentication for Rails apps or API with Devise.
GNU General Public License v3.0
1.51k stars 238 forks source link

separate registration and signin so no token is received by client when registering #355

Open codeundercoverdev opened 4 years ago

codeundercoverdev commented 4 years ago

I am trying to make a basic mobile app where the phone number is the identifier and the user receives a pin which they use to do one time authentication. I have everything setup and working. The only issue is that simple_token_authentication returns an authentication token when registering but I don't want the user to have a token until they have returned the pin. Essentially, how do you separate it so that you can create a user without signing them in?