/authenticator

TypeScript authentication library made with Clean Architecture and Test-Driven Development

Primary LanguageTypeScript

Entities

user { name, email, username, password }

token { user_id, token }

session { user_id, token_id, expires_in }

Services

GET /whoami - expected payload { token } - expected response { name, email, token, session_id }

POST /login - expected body { username, password } - expected response { token, session_id }

POST /register - expected body { name, email, username, password } - expected response { name, email, username, token, session_id }

Tasks

  • model.field validation
  • jwt token
  • web router
  • handle exceptions