Add accounts.dev sign-in to your app
Register your app and connect it using a standard OpenID Connect client library.
Issuer
https://accounts.gameup.dev/api/authDiscovery URL
https://accounts.gameup.dev/api/auth/.well-known/openid-configuration- Register your callback URL. Create a separate registration for each environment. For remote dev and previews, register your exact HTTPS callback. For local dev, use a callback such as
http://localhost:3001/auth/callbackif your provider allows loopback HTTP. Choose a confidential client if your server can store a secret, or a public client if it cannot. - Configure your OIDC library. Use the issuer, client ID, and registered token authentication method. Use authorization code with S256 PKCE, state, and nonce. Request
openidand addprofileoremailas needed. For refresh tokens, requestoffline_accessand sendprompt=consent. - Handle the callback. Validate state before processing success or errors such as denied consent. Let your library validate the ID token signature, issuer, audience, expiry, and nonce. Identify users by issuer and subject, not their email address.