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

custom config tokenName in default tokenGetter #230

Merged
merged 2 commits into from Dec 14, 2016
Merged

Conversation

alllx
Copy link

@alllx alllx commented Dec 7, 2016

Fixed: use custom config tokenName in default tokenGetter method #207

Fixed: use custom config tokenName in default tokenGetter method auth0#207
@escardin
Copy link
Contributor

escardin commented Dec 7, 2016

I don't suppose you could add a test for this?

@alllx
Copy link
Author

alllx commented Dec 7, 2016

@escardin Excuse my I added amendments according to code style used in same method and I don't suppose you have test for that what is already in the code above: angular2-jwt.ts:54-60

@escardin
Copy link
Contributor

escardin commented Dec 8, 2016

The style is fine, I just want a test confirming behaviour. I would add something to the AuthConfig Closure here https://github.com/auth0/angular2-jwt/blob/master/angular2-jwt.spec.ts#L10-L48 You could confirm that the issue is fixed by setting a token in local storage with the id you want and that it is fetched by calling the token getter when you haven't modified it.

@alllx
Copy link
Author

alllx commented Dec 9, 2016

@escardin sorry for misunderstanding. I have added the test.

@chenkie chenkie merged commit 3274ea2 into auth0:master Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants