BackupAuthProviderProps
Defined in: src/react/useBackupAuth.ts:49
Props for BackupAuthProvider
At least one of dropboxAppKey, googleClientId, or icloudApiToken should be provided
for the provider to be useful. All are optional to allow using just one backup provider.
Properties
apiClient?
optionalapiClient:Client
Defined in: src/react/useBackupAuth.ts:68
API client for backend OAuth requests. Optional - uses the default SDK client if not provided. Only needed if you have a custom client configuration (e.g., different baseUrl).
children
children:
ReactNode
Defined in: src/react/useBackupAuth.ts:76
Children to render
dropboxAppKey?
optionaldropboxAppKey:string
Defined in: src/react/useBackupAuth.ts:51
Dropbox App Key (from Dropbox Developer Console). Optional - omit to disable Dropbox.
dropboxCallbackPath?
optionaldropboxCallbackPath:string
Defined in: src/react/useBackupAuth.ts:53
Dropbox OAuth callback path (default: “/auth/dropbox/callback”)
googleCallbackPath?
optionalgoogleCallbackPath:string
Defined in: src/react/useBackupAuth.ts:57
Google OAuth callback path (default: “/auth/google/callback”)
googleClientId?
optionalgoogleClientId:string
Defined in: src/react/useBackupAuth.ts:55
Google OAuth Client ID (from Google Cloud Console). Optional - omit to disable Google Drive.
icloudApiToken?
optionalicloudApiToken:string
Defined in: src/react/useBackupAuth.ts:59
CloudKit API token (from Apple Developer Console). Optional - omit to disable iCloud.
icloudContainerIdentifier?
optionalicloudContainerIdentifier:string
Defined in: src/react/useBackupAuth.ts:61
CloudKit container identifier (default: “iCloud.Memoryless”)
icloudEnvironment?
optionalicloudEnvironment:"development"|"production"
Defined in: src/react/useBackupAuth.ts:63
CloudKit environment (default: “production”)
walletAddress?
optionalwalletAddress:string
Defined in: src/react/useBackupAuth.ts:74
Wallet address for encrypting OAuth tokens at rest. If provided, tokens will be encrypted before storing in localStorage. If omitted, tokens are stored temporarily in sessionStorage (cleared on page close).