You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen this question asked multiple times. I have seen several different answers. I have even seen some which say it works with v5 beta. However, I am still unable to get this to work.
REQUIREMENT
When a user visits the website, any page, the application should check to see if the user is authenticated
I am using Microsoft Entra Id
If the user is not logged in, it should automatically redirect the user to the oath signin
Upon successful login, it should redirect back to the homepage
WHAT IS WORKING
Microsoft Entra Id configuration is working
Clicking a signin button on a temporary page takes me directly to the oath signin and back to the homepage
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have seen this question asked multiple times. I have seen several different answers. I have even seen some which say it works with v5 beta. However, I am still unable to get this to work.
REQUIREMENT
WHAT IS WORKING
MY IMPLEMENTATION
auth.js
middleware.js
[...nextauth]\route.ts
lib\auth-actions.ts
Beta Was this translation helpful? Give feedback.
All reactions