Runbits/Authentication

Authentication

Runbits supports multiple authentication methods. All tokens are JWT (HMAC-SHA256). Include the access token in the Authorization: Bearer <token> header.

Email + Password

Classic credential-based login via POST /api/auth/login.

Google OAuth 2.0

Pass a Google id_token to POST /api/auth/google.

Apple Sign-In

Pass an Apple id_token to POST /api/auth/apple/callback.

Facebook OAuth

Redirect-based flow via GET /api/auth/facebook/callback.

Magic Link

Passwordless email link via POST /api/auth/magic-link/request.

OTP

One-time code via POST /api/auth/otp/request + otp/verify.