NamelessMC / Nameless

NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range of features.
https://namelessmc.com/
MIT License
617 stars 309 forks source link

Don't hardcode oauth scopes #3536

Closed partydragen closed 1 month ago

partydragen commented 3 months ago

Don't hardcode oauth scopes, Such as email is forced for all but integrations such as twitch does not have that scope name when trying to auth it returns invalid scope

partydragen commented 3 months ago

An array merge here might be better instead of making the provider manually add back the email and ID scope

We can't merge as some providers don't have the email scope, that causes the it to return invalid scope error on their end

Also when scopes is null, the league library will use the providers default scopes (Not currently will current backwards compability)