Skip to content

Commit cbff21d

Browse files
authored
Merge pull request #2897 from appwrite/copilot/document-no-email-first-sign-in
docs: document first-session exception in session alerts
2 parents 296ce9e + 4fbe138 commit cbff21d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/partials/auth-security.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,15 @@ Disallowing personal data can be enabled in the Auth service's **Security** tab
5757

5858
# Session alerts {% #session-alerts %}
5959

60-
Enable email alerts for your users so that whenever another session is created for their account, they will be alerted to the new session.
60+
Enable email alerts for your users so that whenever a new session is created for their account, they will be alerted with details about the sign-in. This helps users quickly spot unauthorized access and take action to secure their account.
6161

62-
You won't receive notifications when logging in using [Magic URL](/docs/products/auth/magic-url), [Email OTP](/docs/products/auth/email-otp), or [OAuth2](/docs/products/auth/oauth2) since these authentication methods already verify user access to their systems, establishing the authentication's legitimacy.
62+
## When alerts are not sent
63+
64+
Session alerts are intentionally skipped in a few situations to avoid redundant or confusing emails:
65+
66+
- **First session after sign-up** — the very first sign-in a user makes after creating their account does not trigger an alert. A brand-new account doesn't yet hold anything worthy of protection, so alerting at this stage adds no real security value. It also prevents a double-email situation in flows where your project may already be sending a welcome or verification email.
67+
- **[Magic URL](/docs/products/auth/magic-url), [Email OTP](/docs/products/auth/email-otp), and [OAuth2](/docs/products/auth/oauth2) sign-ins** — these authentication methods already verify the user's access to the sign-in channel (their inbox or identity provider), so no additional alert is needed.
68+
- **No email address on file** — users who have not set an email address on their account will not receive alerts.
6369

6470
To toggle session alerts, navigate to **Auth** > **Security** > **Session alerts**.
6571

0 commit comments

Comments
 (0)