Editar

Compartir a través de


Deserializer class

This class deserializes cache entities read from the file into in memory object types defined internally

Methods

deserializeAccessTokens(Record<string, SerializedAccessTokenEntity>)

Deserializes access tokens to AccessTokenEntity objects

deserializeAccounts(Record<string, SerializedAccountEntity>)

Deserializes accounts to AccountEntity objects

deserializeAllCache(JsonCache)

Deserialize an inMemory Cache

deserializeAppMetadata(Record<string, SerializedAppMetadataEntity>)

Deserializes appMetadata to AppMetaData objects

deserializeIdTokens(Record<string, SerializedIdTokenEntity>)

Deserializes id tokens to IdTokenEntity objects

deserializeJSONBlob(string)

Parse the JSON blob in memory and deserialize the content

deserializeRefreshTokens(Record<string, SerializedRefreshTokenEntity>)

Deserializes refresh tokens to RefreshTokenEntity objects

Method Details

deserializeAccessTokens(Record<string, SerializedAccessTokenEntity>)

Deserializes access tokens to AccessTokenEntity objects

static function deserializeAccessTokens(accessTokens: Record<string, SerializedAccessTokenEntity>): AccessTokenCache

Parameters

accessTokens

Record<string, SerializedAccessTokenEntity>

Returns

AccessTokenCache

deserializeAccounts(Record<string, SerializedAccountEntity>)

Deserializes accounts to AccountEntity objects

static function deserializeAccounts(accounts: Record<string, SerializedAccountEntity>): AccountCache

Parameters

accounts

Record<string, SerializedAccountEntity>

Returns

AccountCache

deserializeAllCache(JsonCache)

Deserialize an inMemory Cache

static function deserializeAllCache(jsonCache: JsonCache): InMemoryCache

Parameters

jsonCache
JsonCache

Returns

deserializeAppMetadata(Record<string, SerializedAppMetadataEntity>)

Deserializes appMetadata to AppMetaData objects

static function deserializeAppMetadata(appMetadata: Record<string, SerializedAppMetadataEntity>): AppMetadataCache

Parameters

appMetadata

Record<string, SerializedAppMetadataEntity>

Returns

AppMetadataCache

deserializeIdTokens(Record<string, SerializedIdTokenEntity>)

Deserializes id tokens to IdTokenEntity objects

static function deserializeIdTokens(idTokens: Record<string, SerializedIdTokenEntity>): IdTokenCache

Parameters

idTokens

Record<string, SerializedIdTokenEntity>

Returns

IdTokenCache

deserializeJSONBlob(string)

Parse the JSON blob in memory and deserialize the content

static function deserializeJSONBlob(jsonFile: string): JsonCache

Parameters

jsonFile

string

Returns

deserializeRefreshTokens(Record<string, SerializedRefreshTokenEntity>)

Deserializes refresh tokens to RefreshTokenEntity objects

static function deserializeRefreshTokens(refreshTokens: Record<string, SerializedRefreshTokenEntity>): RefreshTokenCache

Parameters

refreshTokens

Record<string, SerializedRefreshTokenEntity>

Returns

RefreshTokenCache