-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,6 @@ import { | |
InitParams, | ||
MPCKeyDetails, | ||
OauthLoginParams, | ||
ServiceProviderLoginResponse, | ||
SessionData, | ||
SubVerifierDetailsParams, | ||
UserInfo, | ||
|
@@ -398,7 +397,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit { | |
prefetchTssPubs.push(this.tkey.serviceProvider.getTSSPubKey("default", i)); | ||
} | ||
// oAuth login. | ||
let loginResponse: ServiceProviderLoginResponse; | ||
let loginResponse: TorusKey; | ||
if (!idTokenLoginParams.subVerifier) { | ||
// single verifier login. | ||
loginResponse = await (this.tKey.serviceProvider as TorusServiceProvider).customAuthInstance.getTorusKey( | ||
|
@@ -1165,14 +1164,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit { | |
this.providerProxy = null; | ||
} | ||
|
||
private _getOAuthKey(result: ServiceProviderLoginResponse): string { | ||
// TODO: change param type to TorusKey after tkey/service-provider-torus update | ||
// this is the temporary fix before updating the tKey/servie-provider-torus with [email protected] | ||
// torus.js@v12.2.0 added new property to the TorusKey metadata interface (serverTimeOffset) | ||
const torusKey: TorusKey = { | ||
...result, | ||
metadata: { ...result.metadata, serverTimeOffset: this.options.serverTimeOffset }, | ||
}; | ||
private _getOAuthKey(result: TorusKey): string { | ||
return TorusUtils.getPostboxKey(result); | ||
} | ||
|
||
|