ui: spot improvs
This commit is contained in:
parent
acb679cf18
commit
617dbe4e5e
1 changed files with 3 additions and 3 deletions
|
|
@ -166,10 +166,10 @@ const Router: React.FC<RouterProps> = (props) => {
|
|||
}, [scopeSetup])
|
||||
|
||||
useEffect(() => {
|
||||
if (isLoggedIn && location.pathname.includes('login') && localSpotJwt) {
|
||||
if (!isTokenExpired(localSpotJwt)) {
|
||||
if (isLoggedIn && (location.pathname.includes('login') || isSpotCb)) {
|
||||
if (localSpotJwt && !isTokenExpired(localSpotJwt)) {
|
||||
handleSpotLogin(localSpotJwt);
|
||||
} else if (isSpotCb) {
|
||||
} else {
|
||||
logout();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue