A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
if (Page.User.Identity.IsAuthenticated)
to decide whether to redirect or not?
If I use this line its as if it takes too long and the result is false even if I put the correct user/pass in. On next page reload I am authenticated so the same code will return true.
Is there a better way?
Same result if I use this code too:
UnifiedPrincipal.Current.Identity.IsAuthenticated