OptionalgroupsThe name of the groups claim in the user profile. Default: groups.
OptionalmatchIf true, user must be a member of all groups. Default: false.
OptionalonA middleware function called when the user is not authenticated or is not a member of the specified groups.
OptionalonError handler for signin, callback, signout and userinfo endpoints.
The Next.js request object.
The Next.js FetchEvent.
Error occured during execution of the endpoint.
A promise of the response or void
OptionalprotectedSpecifies the routes that require authentication.
Options for configuring MonoCloud authentication middleware.