---
title: "Endpoint for callback from frontend with token gotten from google oauth provider"
method: POST
path: "/auth/google"
tags: ["auth"]
---

# Endpoint for callback from frontend with token gotten from google oauth provider

`POST /auth/google`

## Request body

- object
  - `id_token` string, required

## Response `200`

user sign in succesfully

- object
  - `status` string
  - `message` string
  - `status_code` integer
  - `data` object
    - `access_token` string
    - `user` object
      - `id` string
      - `email` string
      - `fullname` string
      - `avatar_url` string
      - `expires_in` string
      - `role` string

## Other responses

- `400` — Invalid input
- `401` — Unauthorized
- `422` — Unprocessed Entity

---

[API](https://skmtc.net/hngprojects/apis/kimiko-golang-swagger.md) · [All operations](https://skmtc.net/hngprojects/apis/kimiko-golang-swagger/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hngprojects/kimiko-golang-swagger/revisions/2d1d3ed96bb9/schema)
