Function failed_auth

Source
pub fn failed_auth(auth_response: AuthToken, config: &Config) -> HttpResponse
Expand description

Constructs an HttpResponse for failed session_token verification.

§Arguments

  • auth_response - The authentication response containing details of the failure.
  • config - Configuration data for the application.

§Returns

Returns an HttpResponse with a redirect, setting a cookie with the failure detail.