Back to How it Works Index
Technical Deep-Dive

Security & Session Management Flow

Understand the core mechanics, queues, and logic routines running on our servers when processing this module.

System Execution Pipeline

Below is the step-by-step sequence of events executed by our background workers.

1

User Authenticates

User inputs credentials. Passwords are evaluated against stored bcrypt hashes.

2

Token Generation

On match, the server generates a JWT containing the user identity, signed with a secret key.

3

Route Guards

For every dashboard request, Next.js middleware verifies the token signature and expiration.

4

Session Close

When the user clicks logout, the token is saved in a Redis blacklist store, blocking future uses.

Developer & Architect Notes

Technical Architecture

This module operates as a stateless service hosted across horizontally scalable server nodes. Distributed state coordinates through highly optimized Redis transactions to ensure consistency without deadlocks.

Password Cryptographybcrypt (10+ Salt Rounds)
Token SecurityHMAC SHA-256 JWT

Edge Fail-Safe Rules

Critical protocols (like connection failure retries, cool-down timers, and data limits) are verified before outbound dispatches. Failures degrade gracefully, prioritizing list health and preventing blacklisting.

Lockout DatabaseRedis Key-Value Cache
Transactional SMTPPostmark / SendGrid Relay
Technical FAQ

How security & session management behaves.

Answers about the execution flow, failure handling and limits of this module.

How are account passwords stored?

Passwords are hashed, never stored in a form that can be reversed. Nobody at Email.biz.pk can read your password, and a password reset issues a fresh cryptographic token rather than mailing you the existing one.

What happens to my active sessions when I change my password?

Existing session tokens are added to a blacklist and rejected immediately, so a password change or a sign-out genuinely ends every other session rather than leaving old tokens valid until they expire.

Do password reset links expire?

Yes. Reset tokens are single-use and time-limited, so an old reset email cannot be used to take over an account later.