# GMSAppCheckTokenProvider

    @protocol GMSAppCheckTokenProvider <NSObject>

Protocol for supplying an App Check token to the Navigation SDK.
- `
  ### [-fetchAppCheckTokenWithCompletion:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Protocols/GMSAppCheckTokenProvider#/c:objc(pl)GMSAppCheckTokenProvider(im)fetchAppCheckTokenWithCompletion:)

  ` Fetches an App Check token.
  - token: The `NSString` that was returned, or nil if an error occurred.
  - error: The error that occurred, if any.

  #### Declaration

  Swift

      func fetchAppCheckToken() async throws -> String

  Objective-C

      - (void)fetchAppCheckTokenWithCompletion:
          (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))completion;

  #### Parameters

  |---|---|
  | ` completion ` | The completion block to invoke when a token is fetched. The completion block takes two parameters: |