()
| 495 | } |
| 496 | |
| 497 | private clearState() { |
| 498 | this.updateState({ |
| 499 | privKey: "", |
| 500 | coreKitKey: "", |
| 501 | coreKitEd25519PrivKey: "", |
| 502 | ed25519PrivKey: "", |
| 503 | walletKey: "", |
| 504 | oAuthPrivateKey: "", |
| 505 | tKey: "", |
| 506 | metadataNonce: "", |
| 507 | keyMode: undefined, |
| 508 | userInfo: { |
| 509 | name: "", |
| 510 | profileImage: "", |
| 511 | dappShare: "", |
| 512 | idToken: "", |
| 513 | oAuthIdToken: "", |
| 514 | oAuthAccessToken: "", |
| 515 | appState: "", |
| 516 | email: "", |
| 517 | authConnectionId: "", |
| 518 | userId: "", |
| 519 | groupedAuthConnectionId: "", |
| 520 | authConnection: "", |
| 521 | isMfaEnabled: false, |
| 522 | }, |
| 523 | authToken: "", |
| 524 | sessionId: "", |
| 525 | signatures: [], |
| 526 | }); |
| 527 | } |
| 528 | |
| 529 | private updateState(data: Partial<AuthSessionData>) { |
| 530 | this.state = { ...this.state, ...data }; |
no test coverage detected