serverpack: Add note about cookie token option

This commit is contained in:
2026-01-13 14:33:06 +01:00
parent b879555e6a
commit 626ce34dc0

View File

@@ -273,6 +273,7 @@ let oidOptions (settings: MultiAuthSettings) (o: OpenIdConnectOptions) =
|]
o.Scope.Clear ()
settings.oidc.scopes |> Array.iter o.Scope.Add
// NOTE(simkir): Do not store token in cookie. Reducing the size.
o.SaveTokens <- false
o.UseTokenLifetime <- true
o.ResponseType <- OpenIdConnectResponseType.Code
@@ -673,4 +674,4 @@ type ApplicationBuilder with
state with
ServicesConfig = service :: state.ServicesConfig
AppConfigs = middleware :: state.AppConfigs
}
}