pub async fn response_session<S: AuthSchema>(
ctx: &AuthContext<S>,
response: &AuthResponse,
) -> AuthResult<Option<IssuedSession<S>>>Expand description
Resolve the session selected by a completed response’s signed session cookie.
Cookie clearing is not a new session. The record is read from storage so hooks never trust user or session fields from a response body.
§Errors
Returns an error if the session cannot be serialized.