@graphty/graphty-element / credentials / createCredentialStore
Function: createCredentialStore() ​
createCredentialStore(
options?):CredentialStore
Defined in: graphty-element/src/credentials/index.ts:25
A credential store without an element, over a new AI key manager: remembered AI keys and source credentials restore themselves when an earlier page persisted them. <graphty-element> has its own as element.credentials. Experimental.
Parameters ​
options? ​
ApiKeyManagerOptions = {}
where the key manager keeps persisted items (its storage keys by default)
Returns ​
the store
Example ​
ts
import { createCredentialStore } from "@graphty/graphty-element/credentials";
import { credentials } from "@graphty/graphty-element";
const store = createCredentialStore();
await store.remember({ source: "neo4j", endpoint }, credentials.basic("neo4j", password));