Skip to content
ViraStack
Products
Academy
New
About
Search docs
⌘K
Home
Sources
Contribute
Academy
Auth and Security
Authentication, authorisation and the common vulnerabilities.
01
Sessions, cookies and JWT
8 Docs
4 Articles
1 Video
The difference between a server session and a JWT, the cookie flags, and where to store the token.
02
Passwords, passkeys and 2FA
9 Docs
3 Articles
1 Video
The sign-in form, storing a password on the server, passkeys and two-step verification.
03
OAuth and OIDC flows
7 Docs
2 Articles
1 Video
The authorization code flow and PKCE, access and ID tokens, and how 'Sign in with Google' works.
04
Auth in Next.js
6 Docs
4 Articles
1 Video
Choosing an auth library, signing in, reading the session and redirecting with the proxy.
05
Authorisation and roles
7 Docs
1 Video
Checking roles and permissions, and protecting pages, APIs and Server Actions.
06
XSS and CSP
4 Docs
2 Articles
1 Research
2 Repos
dangerouslySetInnerHTML, unsafe URLs and Content Security Policy.
07
CSRF, CORS and the security headers
7 Docs
1 Article
Preventing CSRF with SameSite, what CORS does, and the basic HTTP security headers.
08
Secret and dependency security
7 Docs
1 Repo
1 Video
Keeping keys away from the client, .env and npm supply chain attacks.
09
A protected admin panel
Project
10 Docs
A small panel with sign-in, role checks and security headers.
Previous track
Software Principles
Next track
Frontend with AI