Custom Storage
The library uses the sessionStorage
as the default storage mechanism. If needed, you can create a custom storage implementation, e.g. to use localStorage
or cookies.
A storage provider is implemented as a class with the AbstractSecurityStorage
interface and the read
, write
and remove
methods.
The following example shows a custom storage that uses localStorage
:
Then provide the class in the module: