Skip to main content
API Reference NSDK NSDKSession

setAccessToken

Sets the access token on native (routed through AuthManagerApi via C-ABI)....

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.
- Important: Must be called from the main thread.