Thursday 28 May 2020

Am I thinking of this wrong?

So I built out a login route and it works great and all but my question is currently my login route responds back with 'response.header('auth-token', token).send(token)' as an example.My question is when a user logs in from a web page form dont't i need to have some sort of redirection? and also if i include the redirection then how would I use the same code for logging in via iOS app client?Do I make two login routes? One for website one for app? Doesn't seem right as its the same code..

Submitted May 28, 2020 at 09:43PM by prgrmmr7

No comments:

Post a Comment