Sign Up for a New Account
MedMitra offers a streamlined authentication process using Google OAuth for secure and convenient access.Navigate to MedMitra
Open your web browser and go to the MedMitra application URL (e.g.,
https://medmitra.vercel.app or http://localhost:3000 for local development).Click Sign Up
If you’re a new user, you’ll be directed to the authentication page. Click on the Sign Up or Get Started button.
Choose Google Authentication
MedMitra uses Google OAuth for secure authentication. Click the Sign in with Google button.
Google OAuth provides enterprise-grade security and eliminates the need to remember another password.
Authorize with Google
You’ll be redirected to Google’s authentication page. Select the Google account you want to use for MedMitra and grant the necessary permissions.The application will request:
- Your basic profile information (name, email)
- Email address for account identification
Logging In
Returning users can quickly access their account using the same Google authentication flow.Go to the Login Page
Navigate to the MedMitra application URL. If you’re not already logged in, you’ll see the login page.
Session Management
MedMitra maintains secure session management to keep you logged in while protecting your data.Active Sessions
- Your session remains active as long as you’re using the application
- Sessions automatically refresh to keep you logged in during active use
- Inactive sessions expire after a period of inactivity for security
Signing Out
To log out of your MedMitra account:Access User Menu
Click on your profile icon or username in the top-right corner of the navigation bar.
Security Features
MedMitra implements multiple security layers to protect your medical data:OAuth 2.0
Industry-standard OAuth 2.0 protocol ensures secure authentication without exposing passwords.
Encrypted Connections
All data transmitted between your browser and MedMitra servers is encrypted using HTTPS/TLS.
Session Tokens
Secure JWT tokens manage your session with automatic expiration and refresh mechanisms.
User Isolation
Each user’s data is completely isolated. You can only access cases you’ve created.
Authentication Flow
Understanding the authentication process can help troubleshoot any issues:Technical Details
Authentication Implementation
MedMitra’s authentication is implemented using:- Frontend:
@supabase/supabase-jsand@supabase/ssrfor client-side authentication - Backend: Supabase Service Role Key for server-side operations
- Middleware: Next.js middleware validates sessions on protected routes
Code Reference
The authentication logic is implemented in:- Client-side auth:
frontend/utils/supabase/client.ts - Server-side auth:
frontend/utils/supabase/server.ts - Auth actions:
frontend/app/actions.ts:15-28 - Middleware protection:
frontend/middleware.ts
Troubleshooting
I can't log in with Google
I can't log in with Google
Possible causes:
- Pop-up blockers preventing the OAuth window from opening
- Third-party cookies disabled in your browser
- Ad blockers interfering with Google authentication
- Allow pop-ups for the MedMitra domain
- Enable third-party cookies for authentication
- Temporarily disable ad blockers during login
- Try using an incognito/private browsing window
I'm logged out unexpectedly
I'm logged out unexpectedly
Possible causes:
- Session token expired due to inactivity
- Browser cleared cookies/local storage
- Multiple tabs with conflicting sessions
- Simply log back in using Google authentication
- Check if your browser is set to clear cookies on exit
- Avoid using multiple accounts in the same browser session
Authentication callback error
Authentication callback error
Possible causes:
- Invalid redirect URL configuration
- Network connectivity issues
- Expired authorization code
- Refresh the page and try logging in again
- Check your internet connection
- Clear browser cache and cookies
- Contact support if the issue persists
Best Practices
Next Steps
Once you’re authenticated, you can:Create Your First Case
Learn how to create and manage patient cases
Upload Documents
Start uploading medical documents for AI analysis
