pub async fn start(cx: &Cx) -> Result<Session>Expand description
Starts a new session, issuing a fresh token to the client.
Always generates a new token (never reuses one the request presented), so
calling this on login also protects against session fixation. Record the
returned Session in the application’s session storage.
§Errors
Returns an error when the token store fails to issue the token.