Skip to main content

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
): TokenRefresh

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

TokenRefresh 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.

Was this page helpful?