Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

lf

Manav Rathi5aa7682812b5
diff --git a/web/packages/accounts/services/session.ts b/web/packages/accounts/services/session.ts
index f2cab12391..b2a4fcae69 100644
--- a/web/packages/accounts/services/session.ts
+++ b/web/packages/accounts/services/session.ts
@@ -83,7 +83,7 @@ export const checkSessionValidity = async (): Promise<SessionValidity> => {
// deployments).
const { keyAttributes } = SessionValidityResponse.parse(await res.json());
if (keyAttributes) {
- const remoteKeyAttributes = keyAttributes satisfies KeyAttributes;
+ const remoteKeyAttributes = keyAttributes;
// We should have these values locally if we reach here.
const email = ensureLocalUser().email;
@@ -108,7 +108,10 @@ export const checkSessionValidity = async (): Promise<SessionValidity> => {
// changed.
return {
status: "validButPasswordChanged",
- updatedKeyAttributes: remoteKeyAttributes,
+ // TODO:
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+ updatedKeyAttributes: remoteKeyAttributes as KeyAttributes,
updatedSRPAttributes: remoteSRPAttributes,
};
}