storeLogin(accountId:clientId:displayName:token:)

Store login-related state for an account

func storeLogin(accountId: String, clientId: String, displayName: String, token: String?) async -> Bool

Parameters

accountId

the account to store login state for

clientId

negotiated client ID

displayName

last known display name

token

persisted token or null to clear it

Return Value

Promise resolving to true when store succeeded