Open chrisbag opened 7 months ago
I think I'm being plagued by the same issue: https://github.com/feathersjs/feathers/issues/3465
Been digging a bit and I have a feathers v4 app that uses the same strategy and it works fine but one thing i did notice is it looks like my other app is using oauth2 v1 and my new app is using oauth2 v2.
Looks like i'm able to get the token when switching to the GSI button: https://developers.google.com/identity/gsi/web/guides/personalized-button
FWIW I just had this issue... turns out though it was simply because in my haste I'd been trying to login via the oAuth callback URL. Posting this in case it helps anyone else visitng this issue!
Steps to reproduce
1) Get feathers-chat sample app https://github.com/feathersjs/feathers-chat 2) Try using github oauth or google oauth (I've tested both) 3) The oauth page of the provider opens, the authentication with the provider is successfull 3) The app is redirected and there is an error in the params
TypeError: Cannot read properties of undefined (reading 'sub')
It appears that some other people have also experienced this issue. Is this a bug with the @feathersjs/authentication-oauth@5.0.0 or am I missing something in the config ?
thanks a lot for your help :)
Expected behavior
Should authenticate and return the logged in use
Actual behavior
Authentication failed and returns error message
System configuration
Tell us about the applicable parts of your setup. Feathers v5
config/default.json
custom-environment-variables.json