Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(frontend:auth): ensure server config is initialized during authentication to prevent OTP prompt from not appearing on desktop

johavene0053ae60895
diff --git a/frontend/src/app/auth/auth.service.ts b/frontend/src/app/auth/auth.service.ts
index 62f543fe..48b9be79 100644
--- a/frontend/src/app/auth/auth.service.ts
+++ b/frontend/src/app/auth/auth.service.ts
@@ -99,6 +99,7 @@ export class AuthService {
this.accessExpiration = r.token.access_expiration
this.refreshExpiration = r.token.refresh_expiration
this.userService.initUser(r.user)
+ this.setServerConfig(r.server)
if (r?.client_token_update) {
// update client token
this.electron.send(EVENT.SERVER.AUTHENTICATION_TOKEN_UPDATE, r.client_token_update)