mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
chore: 🔧 extra sso logging and redirect
This commit is contained in:
parent
eede62b2f2
commit
92f2f13ea7
2 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,10 @@ export const authResolvers = {
|
|||
}
|
||||
}
|
||||
|
||||
if (nodeEnv === 'development') {
|
||||
logger.warn('SSO authentication is disabled in development.');
|
||||
}
|
||||
|
||||
const cookieFile = readCookie(cookiePath);
|
||||
|
||||
if (
|
||||
|
|
|
@ -38,6 +38,7 @@ export const ServerAccounts: React.FC = () => {
|
|||
}
|
||||
if (!data.getAuthToken) {
|
||||
toast.warning('Unable to SSO. Check your logs.');
|
||||
logoutUrl ? (window.location.href = logoutUrl) : push('/login');
|
||||
}
|
||||
}, [push, data, cookieParam]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue