G
G
GaserV2015-10-23 12:23:05
Angular
GaserV, 2015-10-23 12:23:05

Authorization in angular?

Tell. The user entered a log and a pass. If they are correct, roughly speaking, then how to create a session?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-10-23
Protko @Fesor

you send them to the server, if everything is fine, it should return the token that you will send in the headers (or store in cookies, and then it will also be transmitted in the headers), and the 401st error if everything is bad.

I
Ilya, 2015-10-23
@FireGM

Just like usual. Get some kind of identifier from the backend, put it in cookies, send it with each request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question