Class TokenStorageServiceAbstract
Properties Protected
Readonly
config Protected
prefix prefix : string = 'lemon'
Methods Abstract
get All Items get All Items ( ) : Promise < { [key : string ]: string ; } > Returns Promise < { [key : string ]: string ; } >
A promise that resolves to an object containing all items.
get Item get Item ( key ) : Promise < string > Returns Promise < string >
A promise that resolves to the value of the item.
Abstract
has Cached Token has Cached Token ( ) : Promise < boolean > Returns Promise < boolean >
A promise that resolves to true if a cached token exists, false otherwise.
set Item set Item ( key , value ) : Promise < void > Returns Promise < void >
A promise that resolves when the item is set.
Abstract
should Refresh Token should Refresh Token ( ) : Promise < boolean > Returns Promise < boolean >
A promise that resolves to true if the token should be refreshed, false otherwise.
update Prefix update Prefix ( prefix ) : void Returns void
Abstract class representing a token storage service. Provides methods to set and get items in storage, and abstract methods to check and manage cached tokens.