Optional
events?: Partial<{Optional
scopes?: stringOptional
storage?: StorageThe 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).
Optional
transport?: keyof typeof TRANSPORTS
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
.