UnitySwiftKotlin←API Reference Return to API Reference index←packageNianticSpatial.NSDK.AR.Auth NianticSpatial.NSDK.AR.Auth←classAuthClient NianticSpatial.NSDK.AR.Auth.AuthClient Method 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 NameTypeSummaryaccessTokenstringThe access token string for authentication.
Sets the access token for authentication with NSDK services.
This token will be used for API Gateway requests instead of the API key.