---
title: "Verifies a refreshToken  and returns a JWT token"
method: POST
path: "/api/auth/eth-signature/refresh"
tags: ["Authentication"]
---

# Verifies a refreshToken  and returns a JWT token

`POST /api/auth/eth-signature/refresh`

## Headers

- `host` string, required

## Request body

- GenerateTokenDto
  - `refreshToken` string, required

## Response `201`

Tokens generated successfully

- LoginResponseDto
  - `accessToken` string, required
  - `refreshToken` string, required
  - `identityEthAddress` string, required
  - `tokenType` string, required
  - `user` User, required
    - `_id` string, required
    - `identityEthAddress` string, required
    - `rewardsEthAddress` string, required
    - `username` string, required
    - `roles` string[], required
    - `accounts` UserAccount[], required
      - `_id` string, required
      - `user` UserNoUserAccountsDto
        - `_id` string, required
        - `identityEthAddress` string, required
        - `rewardsEthAddress` string, required
        - `username` string, required
        - `roles` string[], required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
      - `accountId` string, required
      - `name` string, required
      - `avatarId` string
      - `platform` string, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Changes

- **2023-08-23** `990e717b779e` — 1 info
  - endpoint added
- **2023-08-23** `abdaebb919d2` — 1 breaking
  - api path removed without deprecation
- **2023-08-17** `bc9e361c5d5d` — 1 breaking
  - the `user/allOf[#/components/schemas/User]/accounts/items/name` response property's minLength was decreased from `4` to `2` for the response status `201`
- **2023-06-14** `009b04108c99` — 1 info
  - endpoint added
- **2023-03-31** `af4ea0086c6f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/auth/eth-signature/refresh/post.md)

---

[API](https://skmtc.dev/givepraise/apis/praise-api.md) · [All operations](https://skmtc.dev/givepraise/apis/praise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/givepraise/praise-api/revisions/d960746392e5/schema)
