Add frontend login
This commit is contained in:
@@ -70,6 +70,8 @@ export const SocketProvider: FC = (props) => {
|
||||
|
||||
connection.start().then(() => {
|
||||
setConn(connection);
|
||||
}).catch(e => {
|
||||
window.location.href = `${serverUrl}/api/auth/login?returnUrl=${window.location.href}`
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
Reference in New Issue
Block a user