Skip to content

@graphty/graph-io / @graphty/graph-io / storableCredential

Function: storableCredential() ​

storableCredential(credential): StorableCredential | null

Defined in: sources/credentials.ts:376

The parts of a credential a credential store saves (graphty-element's CredentialStore is the one caller), or null when it cannot be saved: a token function, an AWS provider or a custom credential. The result HOLDS THE SECRET: never log it, and keep it only where you would keep the password itself. fromStorableCredential makes the credential again. Experimental.

Parameters ​

credential ​

Credential

a credential made by the credentials factories

Returns ​

StorableCredential | null

the parts, or null