Add Google OAuth authentication system (#4)
Some checks failed
Deploy Apartment API / deploy (push) Failing after 1s
Some checks failed
Deploy Apartment API / deploy (push) Failing after 1s
Co-authored-by: Stephen Minakian <stephenminakian@gmail.com> Co-committed-by: Stephen Minakian <stephenminakian@gmail.com>
This commit is contained in:
20
.env.example
Normal file
20
.env.example
Normal file
@ -0,0 +1,20 @@
|
||||
# MongoDB Connection
|
||||
MONGO_URI=mongodb://username:password@host:27017
|
||||
|
||||
# Google OAuth Credentials (from Google Cloud Console)
|
||||
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
|
||||
GOOGLE_CLIENT_SECRET=your-client-secret
|
||||
GOOGLE_CALLBACK_URL=https://apartments.maverickapplications.com/api/auth/google/callback
|
||||
|
||||
# JWT Configuration
|
||||
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
||||
JWT_SECRET=generate-a-secure-random-string-minimum-32-characters
|
||||
|
||||
# Application URLs
|
||||
FRONTEND_URL=https://apartments.maverickapplications.com
|
||||
|
||||
# Activity Logging Level: all, navigation, none
|
||||
ACTIVITY_LOG_LEVEL=all
|
||||
|
||||
# Node Environment
|
||||
NODE_ENV=production
|
||||
Reference in New Issue
Block a user