UpdateSessionData(newSessionData map[string]interface{}) error
Parameters
newSessionData
- description: This information is stored only in your database, so it can contain sensitive information. The values in the map can be any of the primitive types, an
[]interface{}
ormap[string]interface{}
.
- description: This information is stored only in your database, so it can contain sensitive information. The values in the map can be any of the primitive types, an
Returns
- GeneralError
- UnauthorisedError
- 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.