---
title: "Generate a new access token for a given refresh token"
method: POST
path: "/auth/refresh"
tags: ["Auth"]
---

# Generate a new access token for a given refresh token

`POST /auth/refresh`

## Request

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

## Request body

- RefreshTokenDto
  - `refreshToken` string, required: A JWT refresh token

## Response `200`

Refreshed web tokens

- JWTResponseWebDto
  - `accessToken` string, required: A JWT access token
  - `refreshToken` string, required: A JWT refresh token
  - `expiresIn` string, required: String representing the time until the token will expire

---

[API](https://skmtc.dev/momentum-mod/apis/momentum-mod-api.md) - [All operations](https://skmtc.dev/momentum-mod/apis/momentum-mod-api/llms.txt) - [OpenAPI document](https://skmtc.dev/momentum-mod/apis/momentum-mod-api/revisions/0a88cfbbcc65?raw)
