diff --git a/src/runtime/server/lib/oauth/auth0.ts b/src/runtime/server/lib/oauth/auth0.ts index 1cd52bab..b1fd967b 100644 --- a/src/runtime/server/lib/oauth/auth0.ts +++ b/src/runtime/server/lib/oauth/auth0.ts @@ -39,6 +39,12 @@ export interface OAuthAuth0Config { * @default false */ emailRequired?: boolean + /** + * Maximum Authentication Age. If the elapsed time is greater than this value, the OP must attempt to actively re-authenticate the end-user. + * @default 0 + * @see https://auth0.com/docs/authenticate/login/max-age-reauthentication + */ + maxAge?: number } export function auth0EventHandler({ config, onSuccess, onError }: OAuthConfig) { @@ -73,6 +79,7 @@ export function auth0EventHandler({ config, onSuccess, onError }: OAuthConfig