Next.js Discord

Discord Forum

Issue with Redirection Using Auth.js (Provider Credential) and Middleware in Next.js

Unanswered
Brant posted this in #help-forum
Open in Discord
BrantOP
Hello everyone,

I'm encountering an issue with redirection after authentication using Auth.js with the credentials provider in a Next.js application. My goal is to redirect the user to the homepage after a successful login. The authentication works fine, but the address of the homepage does not appear in the address bar when I navigate from the login page to the homepage.

0 Replies