Skip to content

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

Instance Method

verify(as:expectedAudience:trustedAdditionalAudiences:)

Verifies an identity token for one of this application’s audiences.
@discardableResult func verify<Payload>(as _: Payload.Type = Payload.self, expectedAudience: String, trustedAdditionalAudiences: Set<String> = []) async throws -> Payload where Payload : JWTIdentityToken