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

Improve the documentation to tell how to set token manually with OAuthToken #23

Closed
sinsunsan opened this issue Mar 19, 2015 · 0 comments · Fixed by #48
Closed

Improve the documentation to tell how to set token manually with OAuthToken #23

sinsunsan opened this issue Mar 19, 2015 · 0 comments · Fixed by #48

Comments

@sinsunsan
Copy link

I wanted to set the token manually without having to use oauth API function but rather manually with OAuthToken service.
It took me quite some time, that it was so simple as

OAuthToken.token = data.token;

Where data.token is the token with token info coming from my api
In my case something like

token: {
 access_token:"YmJhODg5MGM3NDZlNTA4MjA4ZDU0NzViYTcxOGZjZGRmMGQ2NzE2ZDNjYTk5ODk0NDM4NzdjMzFjMjg1YzM0NQ",
expires_in: 3600,
refresh_token:"NWY1YjUyMzY3NTc0NjdiNTBlNDFkMGFkZWYxNjBlMjdjNzA5MDcxYzgwZjExNTc2Zjg0NzExNDE4YzU1Mzg2Nw",
scope: null,
token_type: "bearer"
}

I know it seem evident, but what's not written explicitly is not evident. So I suggest you add it in your doc.

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 a pull request may close this issue.

1 participant