Options
All
  • Public
  • Public/Protected
  • All
Menu

@dfinity/auth-client

Index

Type Aliases

DBCreateOptions: { dbName?: string; storeName?: string; version?: number }

Type declaration

  • Optional dbName?: string
  • Optional storeName?: string
  • Optional version?: number
IdleManagerOptions: { captureScroll?: boolean; idleTimeout?: number; onIdle?: IdleCB; scrollDebounce?: number }

Type declaration

  • Optional captureScroll?: boolean

    capture scroll events

    default

    false

  • Optional idleTimeout?: number

    timeout in ms

    default

    30 minutes [600_000]

  • Optional onIdle?: IdleCB

    Callback after the user has gone idle

  • Optional scrollDebounce?: number

    scroll debounce time in ms

    default

    100

OnErrorFunc: ((error?: string) => void | Promise<void>)

Type declaration

    • (error?: string): void | Promise<void>
    • Parameters

      • Optional error: string

      Returns void | Promise<void>

OnSuccessFunc: (() => void | Promise<void>) | ((message: InternetIdentityAuthResponseSuccess) => void | Promise<void>)

Variables

ERROR_USER_INTERRUPT: "UserInterrupt" = 'UserInterrupt'
KEY_STORAGE_DELEGATION: "delegation" = 'delegation'
KEY_STORAGE_KEY: "identity" = 'identity'

Generated using TypeDoc