Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Type MethodJWTKit

authenticator(expectedAudience:trustedAdditionalAudiences:)

Authenticates an identity token only when it was issued for this audience. The signing keys must be registered in app.jwt.keys.
static func authenticator(expectedAudience: String, trustedAdditionalAudiences: Set<String> = []) -> AsyncAuthenticator