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

Issue saving access token #2

Open
rburckner opened this issue Apr 29, 2018 · 0 comments
Open

Issue saving access token #2

rburckner opened this issue Apr 29, 2018 · 0 comments

Comments

@rburckner
Copy link

I am new to Node JS and GitHub. I found your example very enlightening. I hope to tailor this for my needs but wanted to report a problem I had saving a token using your code.

I had to make the following two changes:

  • In your "accessTokenModel.js", function "saveAccessToken", I had to modify the call to: "accessTokensDBHelper.saveAccessToken(accessToken, user.username, callback)", and
  • In your "accessTokensDBHelper.js", function "saveAccessToken", I had to modify the SQL query to INSERT INTO access_tokens (access_token, user_id) VALUES ("${accessToken}", "${userID}") ON DUPLICATE KEY UPDATE access_token = "${accessToken}";

I haven't examined this much so I am not certain if this is the correct fix.

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