Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1514

Should Token created when the user registers or login?

$
0
0

I have an API created by one of my team :),

And he made an endpoints "Register/Login"

his thought

When user create a user we save his data and the endpoint response it " without generating a Token"

so i can't navigate him to other screens cuz I make a request based on his Token,

So he wants me to navigate user after register to the login screen then Login endpoint will response the Token

But I think it's not a nice way and not improve UX.

So what you think we do?

generate Token in the register or log in?


Viewing all articles
Browse latest Browse all 1514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>