refresh_session(res)
Parameters
res
- type:
flask.Response
- type:
Returns
Session
on successful refresh. To know more about theSession
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.