Skip to content

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

Instance Method

verify(_:as:expectedAudiences:trustedAdditionalAudiences:trustedAuthorizedPresenters:iteratingKeys:)

Verifies a Google identity token for any configured client ID and additionally restricts its azp claim to a configured client ID or a value in trustedAuthorizedPresenters.
func verify(_ token: String, as _: GoogleIdentityToken.Type = GoogleIdentityToken.self, expectedAudiences: some Sequence<String>, trustedAdditionalAudiences: Set<String> = [], trustedAuthorizedPresenters: Set<String>, iteratingKeys: Bool = false) async throws -> GoogleIdentityToken