auth-api-tutorial
auth-api-tutorial copied to clipboard
Authentication REST API with Node.js, TypeScript, Typegoose & Zod
Features
- Register a user
- Verify user's email address
- Send forgot password email
- Reset password
- Get current user
- Login
- Access token
- Refresh tokens
What technology are we using?
- TypeScript - Static tye checking
- Express@5 - Web server
- Typegoose - Mongoose wrapper for creating TypeScript interfaces and models
- argon2 - Password hashing
- Zod - Validation
- jsonwebtoken - Signing and verifying JSON web tokens
- Nodemailer - Sending emails
- Pino - Logging
- config - Managing configuration
What will you need to follow along?
Video structure
- Demo
- Code walk-through
- Bootstrap application
- User API
- Create user
- Verify user
- Request reset password code
- Reset password
- Get current user
- Authentication API
- Create user session
- Get new access token with refresh tokens