How rektive/interactive-login works
This is an interactive, themed login experience: users enter credentials, the browser requests authentication, and successful login triggers a character transition into a dashboard. The frontend also supports theme switching, eye tracking, typing/proximity reactions, and password visibility; on reload it checks for an existing session. The Express backend issues, verifies, and clears JWT cookies. The README documents the visual capabilities; the sampled frontend excerpt is partial, so edges are limited to relationships shown in the excerpt or README.
Main entry points: script.js Character interactions · index.html Login page · server.js JWT cookie session · style.css Themes and animation
Components 10
Interactive frontend
- Login page
public/index.html - Themes and animation
public/style.css - Character interactions
public/script.js - Login and dashboard
public/script.js
Authentication backend
- Static page hosting
server.js - Login endpoint
server.js - Session verification
server.js - Logout endpoint
server.js - JWT cookie session
server.js
Other components
- User
Connections 13
- User → Login page: uses
README.md - Login page → Themes and animation: loads
- Login page → Character interactions: loads
- User → Character interactions: interacts
README.md - Character interactions → Themes and animation: updates appearance
README.md - Character interactions → Login endpoint: submits credentials
public/script.js - Login endpoint → JWT cookie session: issues cookie
server.js - Character interactions → Session verification: checks session
public/script.js - Session verification → JWT cookie session: verifies token
server.js - Character interactions → Logout endpoint: requests logout
- Logout endpoint → JWT cookie session: clears cookie
server.js - User → Static page hosting: requests page
- Static page hosting → Login page: serves files
server.js