Apply Replit auth to only some pages

Describe your feature request
When using the build in Replit auth make it so it only applies to some pages.

What problem(s) would this feature solve?
In web apps that have its api on the same domain (like ones made with Next.js) I dont want the login page active for the API requests since a token would be passed in for the request instead.

Explain what you were trying to do when you came across the problem leading to this feature request

I was working on a project and relised its going to be a pain if I want the user end and API in one repl. This is because im going to need to make sure users log in with Replit on the user pages and not have a log in screen on the api pages


You can do this yourself if you implement Repl Auth in your codebase yourself.
If you’re using it via the Authentication tool, you can’t do this because it doesn’t modify your code, just applies it to all incoming requests on the webserver.

Check the docs here:


I know I can, I’m talking about the built in one that currently is applied to all requests

1 Like