export const SESSION_ENDED = 'Your session ended — sign in again' export const HANDLE_NOT_FOUND = 'That handle could not be found' export const SIGN_IN_FAILED = 'Sign-in did not complete — try again.' /** A short sign-in failure, without the handle library's internals. */ export function signInFailureMessage(error: unknown): string { const message = error instanceof Error ? error.message : String(error) return /handle|resolve|identifier|not found/i.test(message) ? HANDLE_NOT_FOUND : SIGN_IN_FAILED }