File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
packages/no-modal/src/connectors/auth-connector Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 17
17
-->
18
18
< link rel ="manifest " href ="/manifest.json " />
19
19
< script type ="module ">
20
+ window . global = globalThis ;
20
21
import { Buffer } from "buffer" ;
21
22
import process from "process" ;
22
23
// window.global ||= window;
Original file line number Diff line number Diff line change @@ -461,6 +461,9 @@ class AuthConnector extends BaseConnector<AuthLoginParams> {
461
461
whiteLabel : JSON . stringify ( this . authInstance . options . whiteLabel ) ,
462
462
loginParams : JSON . stringify ( loginParams ) ,
463
463
version : version . split ( "." ) [ 0 ] ,
464
+ web3AuthNetwork : this . coreOptions . web3AuthNetwork ,
465
+ web3AuthClientId : this . coreOptions . clientId ,
466
+ originData : this . authInstance . options . originData ? JSON . stringify ( this . authInstance . options . originData ) : undefined ,
464
467
} ,
465
468
web3AuthClientId : this . coreOptions . clientId ,
466
469
web3AuthNetwork : this . coreOptions . web3AuthNetwork ,
@@ -555,11 +558,6 @@ class AuthConnector extends BaseConnector<AuthLoginParams> {
555
558
if ( params . loginHint || params . extraLoginOptions ?. login_hint ) {
556
559
finalUserId = params . loginHint || params . extraLoginOptions ?. login_hint ;
557
560
} else if ( params . extraLoginOptions ?. id_token ) {
558
- if ( typeof finalExtraLoginOptions . isUserIdCaseSensitive === "undefined" ) {
559
- throw WalletInitializationError . invalidParams (
560
- `isUserIdCaseSensitive is required for this connection: ${ finalExtraLoginOptions . authConnection } `
561
- ) ;
562
- }
563
561
const { payload } = parseToken < Auth0UserInfo > ( params . extraLoginOptions . id_token ) ;
564
562
finalUserId = getUserId (
565
563
payload ,
You can’t perform that action at this time.
0 commit comments