Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Auth ←AuthClient

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​

NameTypeSummary
accessTokenstring
The access token string for authentication.