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

Fixes jwt authenticator restore method to schedule access token refresh after page reload #44

Merged
merged 5 commits into from
Apr 18, 2015

Conversation

hoIIer
Copy link
Contributor

@hoIIer hoIIer commented Apr 12, 2015

The restore method was not functioning after a page reload due to inconsistency with stored token expire name... Updated it to use the tokenExpireName throughout and restored functionality

}
resolve(data);
} else if (_this.refreshAccessTokens) {
resolve(_this.refreshAccessToken(data.token).then(function () {
resolve(_this.refreshAccessToken(data.token).then(function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this should be data.token? Not immediately sure.

@hoIIer
Copy link
Contributor Author

hoIIer commented Apr 16, 2015

@jpadilla updated that to use tokenPropertyName which seems more correct :)

jpadilla added a commit that referenced this pull request Apr 18, 2015
Fixes jwt authenticator restore method to schedule access token refresh after page reload
@jpadilla jpadilla merged commit 4b55b11 into fenichelar:master Apr 18, 2015
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.

2 participants