---
title: "Refresh Token"
method: POST
path: "/v2/auth/refresh-token"
tags: ["v2 - Viewer Auth"]
---

# Refresh Token

`POST /v2/auth/refresh-token`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/auth/refresh-token`
- Auth: HTTP bearer

PUBLIC. Refresh an expiring Firebase ID token SERVER-SIDE via the Secure
Token API, keeping all auth same-origin to api.jubjubapp.com (the browser's
referrer-restricted key can't call securetoken.googleapis.com either).

## Request body

- RefreshTokenRequest
  - `refresh_token` string, required: The refresh_token returned by /v2/auth/exchange-token

## Response `200`

Successful Response

- RefreshTokenResponse
  - `id_token` string, required
  - `refresh_token` string, required
  - `expires_in` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
