You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use ng-token-auth to handle authentication with a custom authentication token API but can't get the storage (either cookie or local storage) to work after a call to submitLogin.
After a successful login (with password+email) my API responds with :
The only thing being written to local storage is {currentConfigName: "default"}. Am I doing something wrong? I've been trying out all kinds of different settings but I just can't get it to work. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
The headers of each response to the API are checked against the keys of the tokenFormat hash in the config. It looks like you're using a non-default auth header (auth_token) - try passing this to the config:
Hi, I'm trying to use ng-token-auth to handle authentication with a custom authentication token API but can't get the storage (either cookie or local storage) to work after a call to submitLogin.
After a successful login (with password+email) my API responds with :
I configured ng-auth-token thusly:
And my sign in function looks like
The only thing being written to local storage is {currentConfigName: "default"}. Am I doing something wrong? I've been trying out all kinds of different settings but I just can't get it to work. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: