refactor(auth): replace redirectToPortalLogin with redirectToPortalLogout
Updated authentication flow to use redirectToPortalLogout instead of redirectToPortalLogin in NavUser and AppearanceSettingsPage components. Introduced redirectToPortalLogout function to handle SSO session termination and redirect users to the logout URL.
This commit is contained in:
@@ -38,7 +38,7 @@ import {
|
||||
clearToken,
|
||||
getClaims,
|
||||
isAuthEnabled,
|
||||
redirectToPortalLogin,
|
||||
redirectToPortalLogout,
|
||||
resetPortalHandoff,
|
||||
} from '@/lib/auth'
|
||||
|
||||
@@ -130,7 +130,7 @@ export function NavUser() {
|
||||
clearToken()
|
||||
resetPortalHandoff()
|
||||
if (authOn) {
|
||||
redirectToPortalLogin()
|
||||
redirectToPortalLogout()
|
||||
return
|
||||
}
|
||||
window.location.href = '/login'
|
||||
|
||||
Reference in New Issue
Block a user