Skip to main content

CredentialStorage class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Implementation of ICredentialStorage with KV Data source

CredentialStorage {ICredentialStorage}

Signature:

export declare class CredentialStorage implements ICredentialStorage 

Implements: ICredentialStorage

Constructors

ConstructorModifiersDescription
(constructor)(_dataSource)Creates an instance of CredentialStorage.

Properties

PropertyModifiersTypeDescription
storageKey

static

readonly

(not declared)

key for storage

Methods

MethodModifiersDescription
findCredentialById(id)returns all credentials in the storage
findCredentialsByQuery(query)returns all credentials in the storage
listCredentials()returns all credentials in the storage
removeCredential(id)returns all credentials in the storage
saveAllCredentials(credentials)returns all credentials in the storage
saveCredential(credential)