Serializer class
Methods
serialize |
Serializes AccessTokens |
serialize |
Serialize Accounts |
serialize |
Serialize the cache |
serialize |
Serialize amdtCache |
serialize |
Serialize IdTokens |
serialize |
serialize the JSON blob |
serialize |
Serialize refreshTokens |
Method Details
serializeAccessTokens(AccessTokenCache)
Serializes AccessTokens
static function serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>
Parameters
- atCache
-
AccessTokenCache
Returns
Record<string, SerializedAccessTokenEntity>
serializeAccounts(AccountCache)
Serialize Accounts
static function serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>
Parameters
- accCache
-
AccountCache
Returns
Record<string, SerializedAccountEntity>
serializeAllCache(InMemoryCache)
Serialize the cache
static function serializeAllCache(inMemCache: InMemoryCache): JsonCache
Parameters
- inMemCache
- InMemoryCache
Returns
serializeAppMetadata(AppMetadataCache)
Serialize amdtCache
static function serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>
Parameters
- amdtCache
-
AppMetadataCache
Returns
Record<string, SerializedAppMetadataEntity>
serializeIdTokens(IdTokenCache)
Serialize IdTokens
static function serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>
Parameters
- idTCache
-
IdTokenCache
Returns
Record<string, SerializedIdTokenEntity>
serializeJSONBlob(JsonCache)
serialize the JSON blob
static function serializeJSONBlob(data: JsonCache): string
Parameters
- data
- JsonCache
Returns
string
serializeRefreshTokens(RefreshTokenCache)
Serialize refreshTokens
static function serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>
Parameters
- rtCache
-
RefreshTokenCache
Returns
Record<string, SerializedRefreshTokenEntity>