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

AuthClient


Declaration

public static class AuthClient

Summary

Static client for interacting with the Auth Manager service. Provides methods to manage authentication tokens and check authorization status.


Methods

NameTypeSummary
static GetAccessAuthInfoAuthInfo
Gets access token authentication information.
Returns authentication information containing information about the current access token.
static GetRefreshAuthInfoAuthInfo
Gets refresh token authentication information.
Returns authentication information containing information about the current refresh token.
static IsAuthorizedbool
Checks if auth tokens are valid and ready for use.
Returns true if a valid, non-expired access token is available.
static SetAccessTokenvoid
Sets the access token for authentication with NSDK services.
This token will be used for API Gateway requests instead of the API key.
static StaticLogoutvoid
Clears cached auth tokens from persistent storage without requiring an NSDK context.
This is the preferred logout path — safe to call before NSDK is initialized or after
it has been destroyed. Any running session will pick up the cleared tokens on its next
reconciliation cycle.