Skip to main content
POST
Verify an OAuth session (Google sign-in)

Body

application/json
accessToken
string
required

Access token returned by the OAuth sign-in redirect (e.g. Google)

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

refreshToken
string
required

Refresh token from the same OAuth session

Example:

"v1.MRjMN..."

role
enum<string>
default:organization

The role to verify the session against. Defaults to "organization" (dashboard login).

Available options:
user,
organization
Example:

"organization"

Response

Session verified (or MFA required)

success
boolean
Example:

true

message
string
Example:

"Signed in successfully"

code
string
Example:

"MFA_REQUIRED"

data
object