Creates a provider that verifies Scalekit access tokens and maps their claims.
Advertised authorization-server metadata uses the resource-scoped issuer.
The verifier accepts both the environment-root issuer and the resource-scoped
issuer so tokens survive Scalekit's issuer migration.
A provider that verifies Scalekit-issued access tokens against the resource id.
Throws
An Error if environment URL or resource id is missing. Throws a TypeError if they are invalid, resourceId does not start with res_, or audience is empty.
Creates a provider that verifies Scalekit access tokens and maps their claims.
Advertised authorization-server metadata uses the resource-scoped issuer. The verifier accepts both the environment-root issuer and the resource-scoped issuer so tokens survive Scalekit's issuer migration.