Skip to Content
Anuma SDKReactInternalFunctionsmigrateNotionClientRegistration

migrateNotionClientRegistration

migrateNotionClientRegistration(walletAddress: string): Promise<boolean>

Defined in: src/lib/auth/notion.ts:525 

Migrate unencrypted client registration to encrypted format. Call this when wallet/encryption key becomes available.

Checks two sources:

  1. sessionStorage fallback (from startNotionAuth when wallet was unavailable)
  2. Legacy plain-text localStorage (from before encryption was added)

Parameters

ParameterType

walletAddress

string

Returns

Promise<boolean>

Last updated on