Skip to main content
osforms uses email/password authentication with OTP verification. JWTs are issued in httpOnly cookies (ff_token, 7-day expiry) and also accepted as Authorization: Bearer <token> for API usage.

Sign up

Creates an account and sends a 6-digit OTP to the provided email address. The account is not active until the OTP is verified.

Verify email

Verifies the OTP. On success, issues a JWT in an httpOnly cookie and returns the user object.
OTPs expire after 30 minutes. If yours has expired, use the resend endpoint below.

Resend OTP

Generates a new 6-digit OTP and resends the verification email.

Log in

Returns the authenticated user and sets the ff_token JWT cookie.

Log out

Clears the ff_token cookie. No body required.

Get current user

Returns the currently authenticated user from the JWT.
Returns 401 if not authenticated.

Google OAuth (Google Sheets)

Google OAuth is used to grant access to Google Sheets for the Sheets integration. It is not used for account authentication.
Redirects to Google’s consent screen. After approval, redirects back to:
Stores the OAuth tokens (encrypted) for use by the Google Sheets integration.