- Implemented endpoints for forgot password and reset password - Added PasswordResetToken model and relationships - Integrated email service using Resend for sending reset links - Updated configuration for email and frontend URL - Enhanced user model to include password reset tokens - Added necessary schemas for password reset requests - Updated requirements to include Resend SDK - Created comprehensive documentation for the new feature
23 lines
407 B
Plaintext
23 lines
407 B
Plaintext
# Database
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USER=root
|
|
DB_PASS=
|
|
DB_NAME=pangestu-profitra
|
|
DB_ECHO=false
|
|
|
|
# JWT
|
|
SECRET_KEY=change-me-to-a-random-secret-key
|
|
ALGORITHM=HS256
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
|
|
|
# Google OAuth
|
|
GOOGLE_CLIENT_ID=
|
|
|
|
# Resend (Email Service)
|
|
RESEND_API_KEY=re_xxxxxxxxxxxxxxxx
|
|
EMAIL_FROM=noreply@profitra.id
|
|
|
|
# Frontend URL (for password reset link)
|
|
FRONTEND_URL=http://localhost:3000
|