Client-side app factory: publishable key + durable session storage.
Wires passwordless OTP, restore/signIn/signOut, 401 auto-refresh with rotated-token persistence, and createSocket().
Client-side app factory: publishable key + durable session storage.
Wires passwordless OTP, restore/signIn/signOut, 401 auto-refresh with rotated-token persistence, and createSocket().