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 to get access token on new version #30

Open
noprobz09 opened this issue Jul 15, 2018 · 0 comments
Open

How to get access token on new version #30

noprobz09 opened this issue Jul 15, 2018 · 0 comments

Comments

@noprobz09
Copy link

Hi all,

I am beginner here. How can I get access token on new version? I was using the old one and below is the sample code to get the token.

app.all('/oauth/token', app.oauth.grant());

app.get('/', app.oauth.authorise(), function (req, res) {
	res.send('Congratulations, you are in a secret area!');
});

Thanks in advance.

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

1 participant