refreshSession(Context ctx)
Parameters
ctx
- description: The context object provided by Javalin
Returns
Session
on successful refresh. To know more about theSession
object, click here
Throws
- GeneralException
- UnauthorisedException
- 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.
- TokenTheftDetectedException
- 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.