Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/origin

src/accounts.ts

27 lines · 700 B · TypeScript
import { accounts } from './token.ts'

export {
	DEFAULT_ORIGIN_ACCOUNT,
	DEFAULT_ORIGIN_SECRET_NAME,
	ORIGIN_APPS_DASHBOARD_URL,
	ORIGIN_PUBLIC_URL,
	ORIGIN_SECRET_SETUP_URL,
	accounts,
	resolveOriginAccount,
	secretSetupUrlForAccount,
} from './token.ts'

/**
 * List the Origin App auth lane and multi-account selection guidance.
 *
 * Extra Origin Apps use a distinct `account` / `integrationName` (for example
 * `origin-work`) and matching secret/storage keys. There are no hard-coded
 * personal aliases.
 *
 * @example
 * import listOriginAccounts from 'kody:@kody/origin/accounts'
 * const lanes = listOriginAccounts()
 */
export default function listOriginAccounts() {
	return accounts()
}