Skip to content

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

Instance Method

verify(as:expectedAudiences:trustedAdditionalAudiences:)

Verifies an identity token for any of the configured audiences.
@discardableResult func verify<Payload>(as _: Payload.Type = Payload.self, expectedAudiences: some Sequence<String>, trustedAdditionalAudiences: Set<String> = []) async throws -> Payload where Payload : JWTIdentityToken