MCPcopy Index your code
hub / github.com/deepnote/deepnote / resolveToken

Function resolveToken

packages/cli/src/commands/integrations.ts:43–50  ·  view source on GitHub ↗

* Resolve the authentication token from options or environment.

(options: IntegrationsPullOptions)

Source from the content-addressed store, hash-verified

41 * Resolve the authentication token from options or environment.
42 */
43function resolveToken(options: IntegrationsPullOptions): string {
44 // Priority: --token flag > DEEPNOTE_TOKEN env var
45 const token = options.token ?? process.env[DEEPNOTE_TOKEN_ENV]
46 if (!token) {
47 throw new MissingTokenError()
48 }
49 return token
50}
51
52/**
53 * Read existing integrations file as a YAML Document.

Callers 1

pullIntegrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected