Skip to content

Conversation

@remoblaser
Copy link

Problem

When trying to authenticate using a provider not returning a sub field during the userInfo request, the plugin fails with a message: The following field is invalid: Sub. This is especially the case with Github and Discord.

Solution

Use the id field returned during the userInfo request as a fallback. If that's not available, the whole thing will continue to fail.

See also

Fixes #133

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 this pull request may close these issues.

userInfo.sub undefined from github Oauth2

1 participant