---
title: "Login"
method: POST
path: "/auth/firebase"
tags: ["Oauth 2"]
---

# Login

`POST /auth/firebase`

## Request

- Base URL: `https://api.confbuilder.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.confbuilder.com/auth/firebase`
- Auth: none declared

Login using a Firebase ID token. Ensures local user exists and returns token/user data.

Parameters:
    request (Request): The incoming HTTP request containing the Firebase access token in JSON body.
    db (AsyncSession): The database session dependency.
Returns:
    TokenSchema: The access token and user data.
Raises:
    HTTPException: If token verification or user retrieval/creation fails.

## Response `200`

Successful Response

- TokenSchema: Schema for token data.
  - `accessToken` string, required
  - `tokenType` string, required
  - `user` TokenDataSchema, required: Schema for token data.
    - `id` string, nullable
    - `name` string, nullable
    - `email` string, email, nullable
    - `isAdmin` boolean
    - `role` string, nullable
    - `teamIds` string[], nullable
    - `createdAt` string, date-time, nullable

---

[API](https://skmtc.dev/confbuilder/apis/confbuilder-api.md) · [All operations](https://skmtc.dev/confbuilder/apis/confbuilder-api/llms.txt) · [OpenAPI document](https://skmtc.dev/confbuilder/apis/confbuilder-api/revisions/9e576d664e16?raw)
