Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

365 B
Raw Blame
/** A cached signed-out result is a logout marker, not identity for a later login. */
export function hasCachedUserIdentity(data: unknown): boolean {
  return (
    typeof data === 'object' &&
    data !== null &&
    'authenticated' in data &&
    data.authenticated === true &&
    'id' in data &&
    typeof data.id === 'string' &&
    data.id.length > 0
  );
}