Next.js Discord

Discord Forum

next-auth middleware automatic provider selection and redirect

Unanswered
Virginia's Warbler posted this in #help-forum
Open in Discord
Virginia's WarblerOP
Hi all! When I configure the next-auth middleware using export { default } from "next-auth/middleware" the protected pages redirect to the Provider selection page (in my case I have only one). Is it possible to skip this step and redirect the user directly to the Provider sign-in page?

1 Reply

I dont think you can do that. There needs to be a page in between where the user actually has to press the button to login.