Skip to content

Commit db5c1fc

Browse files
add comment
1 parent 17830a1 commit db5c1fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mpcCoreKit.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,10 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
11891189
}
11901190

11911191
private _getSignatures(sessionData: TorusKey["sessionData"]["sessionTokenData"]): string[] {
1192+
// There is a check in torus.js which pushes undefined to session data in case
1193+
// that particular node call fails.
1194+
// and before returning we are not filtering out undefined vals in torus.js
1195+
// TODO: fix this in torus.js
11921196
return sessionData.filter((session) => !!session).map((session) => JSON.stringify({ data: session.token, sig: session.signature }));
11931197
}
11941198

0 commit comments

Comments
 (0)