# Manage user sessions

> Learn how to configure and leverage sessions for your users with Wallet APIs

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

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

You can customize session length by passing a [`sessionConfig`](/docs/wallets/reference/account-kit/signer/classes/AlchemyWebSigner) to your `AlchemyWebSigner` constructor.

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

<CodeBlocks>

```ts getAuthDetails.ts
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);
```

```ts signer.ts
import { AlchemyWebSigner } from "@account-kit/signer";

export const signer = new AlchemyWebSigner({
  client: {
    connection: {
      apiKey: "API_KEY",
    },
    iframeConfig: {
      iframeContainerId: "alchemy-signer-iframe-container",
    },
  },
});
```


</CodeBlocks>

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