# SetAccessToken Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Auth.AuthClient.SetAccessToken/ SetAccessToken --- ## Declaration public static void SetAccessToken(string accessToken) #### Summary Sets the access token for authentication with NSDK services. This token will be used for API Gateway requests instead of the API key. #### Throws InvalidOperationException -- Thrown if the NSDK context is not initialized or the operation fails. ### Parameters | Name | Type | Summary | | --- | --- | --- | | accessToken | string | The access token string for authentication. | ---