FAQ
Where are the login and logout API routes defined?
Unlike the next-firebase-auth (opens in a new tab) library, next-firebase-auth-edge
does not require you to manually define your own /api/login
or /api/logout
routes. These routes are automatically handled by the authMiddleware. For more details, check out this explanation (opens in a new tab).