AuthorizationManagerConfiguration: {
    client: string;
    events?: Partial<{
        [Event in keyof AuthorizationManager["events"]]: Parameters<AuthorizationManager["events"][Event]["addListener"]>[0]
    }>;
    redirect: string;
    scopes?: string;
    storage?: Storage;
    transport?: keyof typeof TRANSPORTS;
}

Type declaration

  • client: string
  • Optionalevents?: Partial<{
        [Event in keyof AuthorizationManager["events"]]: Parameters<AuthorizationManager["events"][Event]["addListener"]>[0]
    }>

    Provide an object with event listeners to attach to the instance. This is useful if you need to listen to events that might dispatch immediately after the creation of the instance (constructor), e.g., the authenticated.

  • redirect: string
  • Optionalscopes?: string
  • Optionalstorage?: Storage

    The storage system used by the AuthorizationManager.

    By default, the AuthorizationManager uses an in-memory storage, this option is secure by default.

    If you want to persist the state of the AuthorizationManager, you can use localStorage, or provide your own storage system. It is important to note that using the localStorage, or any persistant storage option will preserve authorization and refresh tokens of users. Best practices for ensuring the security of your application should be followed to protect this data (e.g., ensuring XSS protection).

    MemoryStorage
    
  • Optionaltransport?: keyof typeof TRANSPORTS