GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
AppCheckTokenProvider
protocol AppCheckTokenProvider : Sendable
A protocol for fetching the App Check token.
-
Fetches the App Check token.
Throws
An error if the token cannot be fetched.
Declaration
Swift
func fetchAppCheckToken() async throws -> String
Return Value
The App Check token.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eAppCheckTokenProvider\u003c/code\u003e is a protocol used for fetching an App Check token.\u003c/p\u003e\n"],["\u003cp\u003eIt defines a single asynchronous function, \u003ccode\u003efetchAppCheckToken()\u003c/code\u003e, which retrieves the token and may throw an error if unsuccessful.\u003c/p\u003e\n"]]],["The `AppCheckTokenProvider` protocol defines a method for retrieving an App Check token. The core action is the `fetchAppCheckToken()` function, which asynchronously fetches the token as a `String`. This function can potentially throw an error if the token retrieval fails. The primary output of this action is the App Check token itself.\n"],null,["# GooglePlacesSwift Framework Reference\n\nAppCheckTokenProvider\n=====================\n\n protocol AppCheckTokenProvider : Sendable\n\nA protocol for fetching the App Check token.\n- `\n ``\n ``\n `\n\n ### [fetchAppCheckToken()](#/s:17GooglePlacesSwift21AppCheckTokenProviderP05fetchdeF0SSyYaKF)\n\n `\n ` \n Fetches the App Check token. \n Throws\n An error if the token cannot be fetched. \n\n #### Declaration\n\n Swift \n\n func fetchAppCheckToken() async throws -\u003e String\n\n #### Return Value\n\n The App Check token."]]