Skip to main content
←API Reference ←NSDK ←NSDKSession

setAccessToken


Declaration​

@MainActor func setAccessToken(_ token: String)

Summary​

Sets the access token on native (routed through AuthManagerApi via C-ABI).
Empty or whitespace-only tokens are ignored by native.

Notice

Important: Must be called from the main thread.

Parameters​

NameTypeSummary
tokenString
-