Skip to main content

tokenRefresh Mutation

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 miscellaneous

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

tokenRefresh.refreshToken ● String scalar miscellaneous

Refresh token.

Type

RefreshToken object authentication

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.