Skip to main content

latest
This package works with BunIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
3 months ago (0.2.3)
type alias Creds

Creds: Wrapper of a Salesforce access token

The name of the output file is part of the interface. The (1) create the creds.json file sf org display -o > ./creds.json (2) import the the JSON file to read the access token. This is easy to do with bun. Add the following at the top the bun client add

import type { Creds } from '@pogilvie/sf';
import { Sf } from '@pogilvie/sf';

Properties

result: { id: string; accessToken: string; instanceUrl: string; username: string; clientId: string; connectedStatus: string; alias: string; }

Add Package

deno add jsr:@pogilvie/sf

Import symbol

import { type Creds } from "@pogilvie/sf";

---- OR ----

Import directly with a jsr specifier

import { type Creds } from "jsr:@pogilvie/sf";

Add Package

npx jsr add @pogilvie/sf

Import symbol

import { type Creds } from "@pogilvie/sf";

Add Package

yarn dlx jsr add @pogilvie/sf

Import symbol

import { type Creds } from "@pogilvie/sf";

Add Package

pnpm dlx jsr add @pogilvie/sf

Import symbol

import { type Creds } from "@pogilvie/sf";

Add Package

bunx jsr add @pogilvie/sf

Import symbol

import { type Creds } from "@pogilvie/sf";