How to log-in to an existing GitHub account? #748
-
Hello, Both new GitHub users and returning users login/signup through a button which points to my oauth endpoint (is this correct?):
When a returning user tries to login, we're getting the code and state from GitHub - this is the url shown in the browser, yet it's throwing the above error:
This is my /api/oauth/github file:
The line console.log('after getUser', user) outputs correctly, yet I'm still getting the error, as do all the console logs, but there's no error logged from the catch. Can anyone see any obvious mistakes I'm making please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The 'try' statement was wrong. This works:
|
Beta Was this translation helpful? Give feedback.
The 'try' statement was wrong. This works: