ng-security
ng-security copied to clipboard
How can I use tokens in URL?
Hi.
It's a nice library, I like it.
But how to access API that requires security tokens in the URL?
I tried to find something like getToken
.. But found nothing..
Now you can make use of the localStorage, for instance:
localStorage.getItem('ng-security-authorization')
I did it with $cookies.get('ng-security-authorization')
But honestly, I think it'd be better to have an option how to use the token: with header or with URL. How do you feel about that?
This is a great idea! That may be helpful. Feel free to make a pull request. I'd really appreciate :smiley: