@graphty/graphty-element / index / credentials
Variable: credentials ​
constcredentials:Readonly<{apiKey:Credential;awsSigV4:Credential;basic:Credential;bearer:Credential;custom:Credential; }>
Defined in: graph-io/dist/src/sources/credentials.d.ts:48
The factories that make credentials. Pass the result as the credential option of a load; it is sent only to the load's endpoint origin, or to bind.origins when you give them. Experimental.
Example ​
ts
await loadFromSource("people", { team: "core" }, {
endpoint: "https://example.com",
credential: credentials.bearer(token),
});