Answer the question
In order to leave comments, you need to log in
Angular.js - Authorization and Authentication, which is correct?
I'm going to learn angular, js, I like the idea that one api will be for both the site and the mobile. applications.
Only I'm still confused about how to do authorization and authentication correctly.
I'm used to my api, when logging in, an access_token was issued and then this token is checked every time the api is accessed. The token is usually sent in headers.
How does this happen in angular.js? - maybe there are some screencasts or articles
where this moment is chewed.
Tell me which way to dig.
Answer the question
In order to leave comments, you need to log in
Something like this:
$http.defaults.headers.common['Authentication'] = 'authentication';
You don't need to dig a lot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question