managing-user-sessions

Installation
SKILL.md

Manage user sessions (Scalekit FSA)

Skill contract

This SKILL.md must include name and description frontmatter fields, and the description should be written in third person for reliable skill discovery.

What “session management” means here

After successful authentication, the app receives session tokens (typically access + refresh, and sometimes an ID token) that determine how long the user stays signed in and whether refresh can happen without re-authentication.

This skill implements a secure default for traditional web apps (encrypted HttpOnly cookies) and also supports SPA/mobile patterns (access token in memory + Authorization: Bearer headers).

Inputs to collect (ask before coding)

  • App type: traditional server-rendered web app, SPA, mobile app, or hybrid.
  • Framework: Express/Fastify/Next (Node), Flask/Django/FastAPI (Python), Gin/Fiber (Go), Spring Boot (Java), etc.
  • Token storage plan:
    • Cookie names (examples used below: accessToken, refreshToken, idToken).
    • Cookie attributes actually used in the repo (Path, Domain, Secure, HttpOnly, SameSite).
  • Encryption approach already present (KMS, libsodium, AES-GCM, framework session store), or whether the app needs one introduced.
  • Scalekit SDK/client availability and the exact methods used (validate, refresh, sessions list/revoke).
Related skills

More from scalekit-inc/skills

Installs
2
GitHub Stars
2
First Seen
Apr 19, 2026