-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with ngCookies #166
Comments
Same Problem here, when can we use ng-token-auth with ngCookies ? |
I just changed everything to use ipCookie. |
Since the latest merge of master you can now write your own custom storage method by implementing 3 methods: var ngCookieStorage = {
persistData: function(key, val){
return $cookies.put(key, val);
},
retrieveData: function(key){
return $cookies.get(key);
},
deleteData: function(key){
return $cookies.remove(key);
}
};
// on your ngTokenAuth config object set:
{
"storage": ngCookieStorage
} see #138 for more informations about this. |
Closing this as there's now a mechanism that should accommodate any persistence implementation desired. |
Thanks for the clarification :+1 |
I understood from your FAQ, that ng-token-auth is using ipCookie instead of ngCookies. However I am wondering why I can't use ngCookies and ng-toke-auth together ?
Since I use ng-token-auth I keep having unknown provider errors.
The text was updated successfully, but these errors were encountered: