Search
Preparing search index...
The search index is not available
Community Solid Server - v1.0.0-beta.2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Community Solid Server - v1.0.0-beta.2
identity/storage/ExpiringAdapterFactory
ExpiringAdapter
Class ExpiringAdapter
An IDP storage adapter that uses an ExpiringStorage to persist data.
Hierarchy
ExpiringAdapter
Implements
Adapter
Index
Constructors
constructor
Properties
logger
name
storage
storage
Name
Methods
consume
destroy
find
find
ByUid
find
ByUser
Code
grant
Key
For
key
For
revoke
ByGrant
Id
uid
Key
For
upsert
user
Code
Key
For
Constructors
constructor
new
Expiring
Adapter
(
name
:
string
, args
:
ExpiringAdapterArgs
)
:
ExpiringAdapter
Parameters
name:
string
args:
ExpiringAdapterArgs
Returns
ExpiringAdapter
Properties
Protected
Readonly
logger
logger
:
Logger
= ...
Private
Readonly
name
name
:
string
Private
Readonly
storage
storage
:
ExpiringStorage
<
string
,
unknown
>
Private
Readonly
storage
Name
storage
Name
:
string
Methods
consume
consume
(
id
:
string
)
:
Promise
<
void
>
Parameters
id:
string
Returns
Promise
<
void
>
destroy
destroy
(
id
:
string
)
:
Promise
<
void
>
Parameters
id:
string
Returns
Promise
<
void
>
find
find
(
id
:
string
)
:
Promise
<
void
|
AdapterPayload
>
Parameters
id:
string
Returns
Promise
<
void
|
AdapterPayload
>
find
ByUid
find
ByUid
(
uid
:
string
)
:
Promise
<
void
|
AdapterPayload
>
Parameters
uid:
string
Returns
Promise
<
void
|
AdapterPayload
>
find
ByUser
Code
find
ByUser
Code
(
userCode
:
string
)
:
Promise
<
void
|
AdapterPayload
>
Parameters
userCode:
string
Returns
Promise
<
void
|
AdapterPayload
>
Private
grant
Key
For
grant
Key
For
(
id
:
string
)
:
string
Parameters
id:
string
Returns
string
Private
key
For
key
For
(
id
:
string
)
:
string
Parameters
id:
string
Returns
string
revoke
ByGrant
Id
revoke
ByGrant
Id
(
grantId
:
string
)
:
Promise
<
void
>
Parameters
grantId:
string
Returns
Promise
<
void
>
Private
uid
Key
For
uid
Key
For
(
uid
:
string
)
:
string
Parameters
uid:
string
Returns
string
upsert
upsert
(
id
:
string
, payload
:
AdapterPayload
, expiresIn
?:
number
)
:
Promise
<
void
>
Parameters
id:
string
payload:
AdapterPayload
Optional
expiresIn:
number
Returns
Promise
<
void
>
Private
user
Code
Key
For
user
Code
Key
For
(
userCode
:
string
)
:
string
Parameters
userCode:
string
Returns
string
Modules
identity/storage/
Expiring
Adapter
Factory
Expiring
Adapter
constructor
logger
name
storage
storage
Name
consume
destroy
find
find
ByUid
find
ByUser
Code
grant
Key
For
key
For
revoke
ByGrant
Id
uid
Key
For
upsert
user
Code
Key
For
Expiring
Adapter
Factory
Expiring
Adapter
Args
An IDP storage adapter that uses an ExpiringStorage to persist data.