---
title: "POST /auth/tokens/github"
method: POST
path: "/auth/tokens/github"
tags: ["tokens"]
---

# POST /auth/tokens/github

`POST /auth/tokens/github`

Allow n2-oauth-client (fork) to post a new GitHub token to dockstore, used by login, can create new users.

## Response `200`

Allow n2-oauth-client (fork) successfully posted a new GitHub token to Dockstore

- TokenAuth
  - `content` string
  - `dbCreateDate` integer
  - `dbUpdateDate` integer
  - `id` integer
  - `refreshToken` string
  - `token` string
  - `tokenSource` 'quay.io' | 'github.com' | 'dockstore' | 'bitbucket.org' | 'gitlab.com' | 'zenodo.org' | 'google.com' | 'orcid.org'
  - `userId` integer
  - `username` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict

---

[API](https://skmtc.net/dockstore/apis/dockstore-api.md) · [All operations](https://skmtc.net/dockstore/apis/dockstore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dockstore/dockstore-api/versions/9d82a4e96aa7/schema)
