mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-11 10:56:53 +00:00
While RFC 6749 specify this field as recommended: > If omitted, the authorization server SHOULD provide the > expiration time via other means or document the default value. and equivalently the OIDC Core spec specifies the same field as optional, we will explicitly enforce that these fields are returned from the AS. This isn't a breaking change as the existing session refresh logic implicitly depends on this field and its value. While there are probably some providers that omit the `expires_in` field or sets it to zero with the intent of returning access tokens that do not expire, we assume these are relatively rare. We might revisit this at some point in the future, should our assumptions be wrong.