reference

Sign In

Sign in with email and password to receive access and refresh tokens.

Published: March 22, 2026Updated: March 22, 2026

Sign In

Authenticate with email and password. Uses the password grant type.

Endpoint

POST /api/auth/v1/token

Request Body

{
  "grant_type": "password",
  "email": "user@example.com",
  "password": "your-password"
}

Refresh Token

Use the refresh token to obtain a new access token without re-entering credentials:

{
  "grant_type": "refresh_token",
  "refresh_token": "eyJ..."
}

SDK Example

const { data, error } = await postbase.auth.signInWithPassword({
  email: 'user@example.com',
  password: 'your-password',
})