Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.71 KB

File metadata and controls

45 lines (30 loc) · 1.71 KB
title Session management
sidebar_label Session management
image img/metamaskog.jpg
description Configure session duration and behavior in MetaMask Developer Dashboard | Embedded Wallets

import ProjectSettingsAdvanced from '@site/static/img/embedded-wallets/dev-dashboard/project-settings-advanced.png'

Session management controls how long a user's authentication session stays valid before they must re-authenticate.

Session management settings

Configure session duration

Navigate to Project SettingsAdvancedSession management and enter a value in the Session Duration field.

Supported units:

Unit Examples
Seconds 1s, 30s
Minutes 1m, 30m
Hours 1h, 12h, 24h
Days 1d, 7d, 30d

Default: 1d | Minimum: 1s | Maximum: 30d

When the session expires, web3auth.connected becomes false and all provider calls fail until the user re-authenticates.

Choosing a session duration

Shorter durations reduce the exposure window if a session token is compromised. Longer durations reduce re-authentication friction.

Common configurations:

  • High-security or financial apps: 30m-4h
  • Standard web apps: 1d-7d
  • Mobile or gaming apps: 14d-30d

Next steps