refresh_session(request)
Parameters
Returns
Awaitable[Session]
on successful refresh. To know more about the Session
object, click here
Throws
- SuperTokensGeneralError
- SuperTokensUnauthorisedError
- This is thrown if the current session was revoked or has expired, or if the provided refresh token is invalid.
- When this is thrown, all the relevant auth cookies are cleared by this function call, so you can redirect the user to a login page.
- SuperTokensTryRefreshTokenError
- This is thrown if token theft is detected.
- When this is thrown, all the relevant auth cookies are cleared by this function call, so you can redirect the user to a login page.