Skip to content

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

Package listing

@kody/bluesky

src/default-handle.ts

11 lines · 339 B · TypeScript
import { getDefaultHandle, setDefaultHandle, tryDefaultHandle } from './client.ts'

/**
 * Read the Bluesky handle from this package's storage.
 */
export default async function defaultHandle() {
	const handle = await tryDefaultHandle()
	return { handle: handle || null }
}

export { getDefaultHandle, setDefaultHandle, tryDefaultHandle }