Answer the question
In order to leave comments, you need to log in
Where to store the token/code received from oauth2 on the site user's side?
Good afternoon, dear ones! Thank you for stopping by.
Given: We produce oauth2 authorization. The token/code is returned. The site works on the principle of a client-side application (on the first visit, everything is processed, and during the work only requests to the api are made. SSL is used.
Where to store it for further work with the site?
Thanks for the answers
Answer the question
In order to leave comments, you need to log in
If you use satellizer, then this is an authorization token, you still need to exchange it for a working one. If everything is OK with the token - well, write it down in cookies and use it when you need it.
I decided to write to localStorage, but I still monitor the security of this solution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question