Skip to content

Commit 6af8531

Browse files
fix wc v2 cached events
1 parent 1ffc94a commit 6af8531

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/no-modal/src/connectors/wallet-connect-v2-connector/walletConnectV2Connector.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ class WalletConnectV2Connector extends BaseConnector<void> {
283283
if (existingToken) {
284284
const isExpired = checkIfTokenIsExpired(existingToken);
285285
if (!isExpired) {
286+
this.status = CONNECTOR_STATUS.AUTHORIZED;
287+
this.emit(CONNECTOR_EVENTS.AUTHORIZED, { connector: WALLET_CONNECTORS.WALLET_CONNECT_V2, identityTokenInfo: { idToken: existingToken } });
286288
return { idToken: existingToken };
287289
}
288290
}

0 commit comments

Comments
 (0)