getSessionData()
Parameters
- none
Returns
Promise<object>
Throws
- GENERAL_ERROR
- UNAUTHORISED
- This is thrown if the current session was revoked or has expired.
- 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.
It does nothing to synchronize with other
getSessionData
orupdateSessionData
calls on this session. So it is up to you to handle various race conditions depending on your use case.