---
title: "Provides authentication token for Firebase."
method: POST
path: "/user/firebase_authenticate"
tags: ["user"]
---

# Provides authentication token for Firebase.

`POST /user/firebase_authenticate`

This endpoint provides a json object similar to current user's OAuth2 object.

## Response `200`

Returns the new firebase authentication token and the expiration time in Unix timestamp format.

- object
  - `token` string — Firebase access token
  - `expires_in` integer — Token aviability in seconds. Max expiration time is 3600.

## Other responses

- `400` — Some other problem retrieving the auth token
- `401` — Invalid user Id or not authenticated user.

---

[API](https://skmtc.net/zumba/apis/zumba-s-api.md) · [All operations](https://skmtc.net/zumba/apis/zumba-s-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zumba/zumba-s-api/revisions/90e715bcdf3d/schema)
