Skip to content

Add method getRefreshToken() #164

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

Closed
mackva opened this issue Nov 17, 2017 · 4 comments
Closed

Add method getRefreshToken() #164

mackva opened this issue Nov 17, 2017 · 4 comments

Comments

@mackva
Copy link

mackva commented Nov 17, 2017

Please provide this functionality. Thank you.

@mackva mackva changed the title How are get refresh token? How get the refresh token? Nov 17, 2017
@manfredsteyer
Copy link
Owner

What do you exactly mean? Currently, when doing password flow the lib supports the refresh token and using refreshToken() you can refresh your access_token with it.

When doing implicit flow there is no refresh token but you could use silent refresh (see docs for setting it up).

Or did you mean sth else?

@mackva
Copy link
Author

mackva commented Nov 17, 2017

Hi manfredsteyer,
Could you add the method below to the oauth-service.ts?

public getRefreshToken(): string {
return this._storage.getItem('refresh_token');
}

@manfredsteyer
Copy link
Owner

With pleasure. It will be there in the next release (comes soon).

@mackva
Copy link
Author

mackva commented Nov 17, 2017

Wow thank you very much!!!

@manfredsteyer manfredsteyer changed the title How get the refresh token? Add method getRefreshToken() Nov 18, 2017
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

No branches or pull requests

2 participants