Skip to main content
Version: 3.x

tokenRefresh

Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie.

tokenRefresh(
csrfToken: String
refreshToken: String
): RefreshToken

Arguments

tokenRefresh.csrfToken ● String scalar

CSRF token required to refresh token. This argument is required when refreshToken is provided as a cookie.

tokenRefresh.refreshToken ● String scalar

Refresh token.

Type

RefreshToken object

Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie.