Skip to content
Alchemy Logo

Manage user sessions

Alchemy Signer APIs are being sunset. As of June 16, 2026, Alchemy Signer no longer supports new user signups. Existing users can still log in to be migrated. For new users, use Privy with Wallet APIs.

By default, AlchemyWebSigner user sessions are cached in localStorage for 15 minutes.

You can customize session length by passing a sessionConfig to your AlchemyWebSigner constructor.

You can check if the user has an active session with the following command:

import { signer } from "./signer";
 
// NOTE: this method throws if there is no authenticated user
// so we return null in the case of an error
const user = await signer.getAuthDetails().catch(() => null);

If there is an existing session, then your signer is ready for use! If not, see the section above for logging users in.

Was this page helpful?