Use the session's refresh token to obtain a fresh access token.
Throws if the session has no refreshToken. Returns a new session — the original is not mutated. If the server omits refresh_token in the response, the previous one is preserved.
refreshToken
refresh_token
Optional
Confidential client secret (server-side only). Required when session.usesClientSecret is true.
session.usesClientSecret
Use the session's refresh token to obtain a fresh access token.
Throws if the session has no
refreshToken. Returns a new session — the original is not mutated. If the server omitsrefresh_tokenin the response, the previous one is preserved.