Sign In with Email

Authenticate with email and password credentials. If 2FA is enabled, returns twoFactorRedirect: true and sets a session cookie for 2FA verification. Important: Use credentials: 'include' in fetch to handle session cookies.

Body
required
application/json
  • email
    Type: stringFormat: email
    required
  • password
    Type: stringFormat: password
    required

    a hint to UIs to mask the input

  • rememberMe
    Type: boolean

    Keep session alive longer

Responses
  • application/json
  • 401

    Invalid credentials

Request Example for post/auth/sign-in/email
curl https://api.gpcn.com/v1/auth/sign-in/email \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "",
  "password": "",
  "rememberMe": true
}'
{
  "user": {
    "id": "string",
    "email": "string",
    "name": "string"
  },
  "session": {
    "id": "string",
    "token": "string",
    "expiresAt": "2026-05-19T14:02:02.487Z"
  }
}