Skip to content
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

How can I use tokens in URL? #6

Open
kashesandr opened this issue Mar 16, 2016 · 3 comments
Open

How can I use tokens in URL? #6

kashesandr opened this issue Mar 16, 2016 · 3 comments

Comments

@kashesandr
Copy link

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..

@ghost
Copy link

ghost commented Mar 16, 2016

Now you can make use of the localStorage, for instance:

localStorage.getItem('ng-security-authorization')

@kashesandr
Copy link
Author

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?

@ghost
Copy link

ghost commented Mar 17, 2016

This is a great idea! That may be helpful.
Feel free to make a pull request. I'd really appreciate 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants