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 ValueThe 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."],[],["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"]]