Authentication
Hyperlaunch's authentication system is built on Auth.js, providing a robust and secure authentication solution.
This guide walks you through implementing Google authentication, though the process is similar for other providers. By default, Hyperlaunch includes both Google authentication and Magic Link login (powered by Resend, covered in the email setup section).
Google Authentication Setup
Add the following environment variables to your .env.local
file:
Step 1: Google Cloud Console Configuration
Navigate to the Google Cloud Console and complete these steps:
- Access "APIs & Services" > "Credentials"
- Select "Configure Consent Screen"
- Complete the OAuth consent form configuration
- Configure the required OAuth scopes:
- profile
- Add test users for development purposes
Step 2: OAuth Credentials Configuration
Create your OAuth 2.0 credentials with these settings:
- Select "Web Application" as the application type
- Configure authorized origins:
- Configure authorized redirect URIs:
Step 3: Production Deployment
Before going live, complete these verification steps:
- Submit your application for verification in the OAuth Consent Screen
- Verify domain ownership through Google Search Console
- Monitor your email for verification confirmation from Google
Note: During the verification process, authentication will remain functional, though users may encounter standard security notices.
With that done you can go to the next section (test-your-app) to start running your app.