export const HANDLE_STORAGE_KEY = 'blueskyHandle'
export const APP_PASSWORD_SECRET = 'blueskyAppPassword'
export const DEFAULT_AUTH_SERVICE = 'https://bsky.social'
export const DEFAULT_PUBLIC_APPVIEW = 'https://public.api.bsky.app'
export const AUTH_HOST = 'bsky.social'
export const PDS_HOST_PATTERN = '*.bsky.network'
export const APP_PASSWORD_SETUP_URL =
'https://kody.codes/account/secrets/new?name=blueskyAppPassword&description=Bluesky%20app%20password%20for%20AT%20Protocol%20session%20creation&allowedHosts=bsky.social,*.bsky.network&scope=user'
export const APP_PASSWORD_DOCS_URL = 'https://bsky.app/settings/app-passwords'
export function missingHandleMessage() {
return (
'Missing packageStorage blueskyHandle. After you fork, store your handle with packageStorage().set("blueskyHandle", "yourhandle.bsky.social"), or pass identifier/actor/handle on the call. Do not treat the live @kody/bluesky storage bucket as yours.'
)
}
export function missingAppPasswordMessage() {
return (
'Missing blueskyAppPassword. Create an app password at ' +
APP_PASSWORD_DOCS_URL +
' (never your account password, never paste it into chat), then save it at ' +
APP_PASSWORD_SETUP_URL +
' and approve hosts bsky.social and *.bsky.network.'
)
}