glamorous-crayon-34702
09/26/2025, 9:14 AMchilly-king-10285
09/26/2025, 9:14 AMchilly-king-10285
09/26/2025, 9:15 AMsession_refresh_required or session_inactive to indicate the specific reason: - `session_refresh_required`: The identity requested to change something that needs a privileged session. - `session_inactive`: No Ory Session was found—sign in a user first. This behavior is documented in the API reference and the user settings flow documentation: > API-initiated flows ... HTTP 403 when selfservice.flows.settings.privileged_session_max_age was reached or the session's AAL is too low. Implies that the user needs to re-authenticate. > Browser flows ... a HTTP 303 redirect to the login endpoint when selfservice.flows.settings.privileged_session_max_age was reached or the session's AAL is too low. > If the Ory Session is older than the specified amount, the user is prompted to re-authenticate similar to the GitHub sudo mode. ... API-based flows will simply return a 403 Forbidden status message which require you to request a new Ory Session using the API-based Login Flow [Settings and profile updates](https://www.ory.sh/docs/kratos/self-service/flows/user-settings) [updateSettingsFlow](https://raw.githubusercontent.com/ory/kratos/master/spec/api.json) [Session lifespan: Privileged sessions](https://www.ory.sh/docs/kratos/session-management/session-lifespan#privileged-sessions)