Skip to main content

Setup

1

Get credentials

Go to railway.com and navigate to Account Settings > Developer > OAuth Apps. Create an app and add your redirect URI:
2

Configure

lib/theauth.ts

Scopes

Default scopes: read:user, read:project
This is a preset built on the generic OIDC factory, which reads the user from https://backboard.railway.com/graphql/v2 and requires the response to contain the OIDC sub and email fields. That endpoint returns a GraphQL data object, so sign-in is expected to fail with Railway userinfo response missing required "sub" field. This preset has not been verified against the live service.

Endpoints

Last modified on October 18, 2026