We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c24f5dd commit b76bedbCopy full SHA for b76bedb
packages/no-modal/src/noModal.ts
@@ -517,15 +517,16 @@ export class Web3AuthNoModal extends SafeEventEmitter<Web3AuthNoModalEvents> imp
517
// when ssr is enabled, we need to get the idToken from the connector.
518
if (this.coreOptions.ssr) {
519
try {
520
- // TODO: handle the idToken being expired if saved in storage.
521
const data = await connector.authenticateUser();
522
if (!data.idToken) throw WalletLoginError.connectionError("No idToken found");
523
this.setState({
524
idToken: data.idToken,
525
});
526
} catch (error) {
527
log.error(error);
528
- throw error;
+ this.status = CONNECTOR_STATUS.ERRORED;
+ this.emit(CONNECTOR_EVENTS.ERRORED, error as Web3AuthError);
529
+ return;
530
}
531
532
0 commit comments