Answer the question
In order to leave comments, you need to log in
Is it safe to do two types of authorization?
Let's say API /user/login. The request comes with username, password and authType. If authType = "cookie", then the token comes in the form of a cookie. If authType = "direct", then the token comes in the form of JSON {token: token}. SPA will use this API, and will log in through authType cookie. The second type of authorization (non-cookies) is purely just in case you suddenly want to make an application for a smartphone or something. Question: Is it safe to do all this like this?
Answer the question
In order to leave comments, you need to log in
The second type of authorization (non-cookies) is purely just in case
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question