Serverless authentication and billing service for IPDrift
/.netlify/functions/auth/google
Google OAuth authentication
Body: {"token": "google-access-token"}
/.netlify/functions/auth/verify
Verify JWT token
Body: {"token": "jwt-token"}
/.netlify/functions/auth/profile
Get user profile
Headers: Authorization: Bearer jwt-token
/.netlify/functions/auth/usage
Get usage statistics
Headers: Authorization: Bearer jwt-token
/.netlify/functions/auth/refresh-key
Refresh API key
Headers: Authorization: Bearer jwt-token
/.netlify/functions/payment/plans
Get available subscription plans
/.netlify/functions/payment/create-checkout
Create PayPal checkout session
Headers: Authorization: Bearer jwt-token
Body: {"plan_id": "pro"}
/.netlify/functions/payment/create-portal
Create PayPal customer portal session
Headers: Authorization: Bearer jwt-token
✅ MongoDB: Configured
✅ JWT: Configured
✅ PayPal: Configured
✅ CORS: Enabled
netlify dev in the project directory.