Skip to main content

TokenRefresh

Result of token refresh mutation.

type TokenRefresh {
token: String
refreshToken: String
user: User
accountErrors: [AccountError!]!
}

Fields​

TokenRefresh.token ● String scalar​

New JWT token.

TokenRefresh.refreshToken ● String scalar​

New JWT refresh token. Every refresh issues one: store it in place of the token sent, so the session lasts from its last use rather than from sign-in, up to a fixed limit after sign-in. Returned when the refresh token was sent as an argument; a refresh from the cookie updates the cookie instead.

TokenRefresh.user ● User object​

The authenticated user.

TokenRefresh.accountErrors ● [AccountError!]! non-null object​

List of errors that occurred executing the mutation.

Returned By​

tokenRefresh mutation

Was this page helpful?