modrinth / labrinth

Our Rust-based backend utilizing the actix-web framework to serve Modrinth's API.
https://modrinth.com
GNU Affero General Public License v3.0
509 stars 73 forks source link

Allow user to select GitHub account #922

Open PixelBedrock opened 3 weeks ago

PixelBedrock commented 3 weeks ago

A simple change to the auth system that lets you pick your GitHub account following this change: https://github.blog/changelog/2024-06-07-account-picker-updates-for-oauth-and-github-app-sign-in/

To force the account picker, append the following alongside your client ID and redirect URI parameters when you send the user to GitHub to sign in: &prompt=select_account.

While the user is still shown the prompt if they have multiple accounts, it allows users that don't have multiple accounts signed in to quickly add a different GitHub account and sign into Modrinth with that account instead.