1- import { OpenloginSessionManager } from "@toruslabs/openlogin-session-manager" ;
21import {
3- BaseLoginParams ,
42 BUILD_ENV ,
5- jsonToBase64 ,
3+ BaseLoginParams ,
64 MFA_LEVELS ,
75 OPENLOGIN_ACTIONS ,
86 OPENLOGIN_NETWORK ,
97 OpenloginSessionConfig ,
108 TORUS_LEGACY_NETWORK ,
119 TORUS_LEGACY_NETWORK_TYPE ,
10+ jsonToBase64 ,
1211} from "@toruslabs/openlogin-utils" ;
13- import clonedeep from "lodash.clonedeep" ;
14- import merge from "lodash.merge" ;
15- import log from "loglevel" ;
16-
17- import { InitializationError , LoginError , RequestError } from "./errors" ;
18- import KeyStore from "./session/KeyStore" ;
19- import { EncryptedStorage } from "./types/IEncryptedStorage" ;
20- import { SecureStore } from "./types/IExpoSecureStore" ;
2112import {
2213 ChainConfig ,
2314 IWeb3Auth ,
@@ -28,9 +19,18 @@ import {
2819 State ,
2920 WalletLoginParams ,
3021} from "./types/interface" ;
31- import { IWebBrowser } from "./types/IWebBrowser " ;
22+ import { InitializationError , LoginError , RequestError } from "./errors " ;
3223import { constructURL , fetchProjectConfig , getHashQueryParams } from "./utils" ;
3324
25+ import { EncryptedStorage } from "./types/IEncryptedStorage" ;
26+ import { IWebBrowser } from "./types/IWebBrowser" ;
27+ import KeyStore from "./session/KeyStore" ;
28+ import { OpenloginSessionManager } from "@toruslabs/openlogin-session-manager" ;
29+ import { SecureStore } from "./types/IExpoSecureStore" ;
30+ import clonedeep from "lodash.clonedeep" ;
31+ import log from "loglevel" ;
32+ import merge from "lodash.merge" ;
33+
3434// import WebViewComponent from "./WebViewComponent";
3535
3636class Web3Auth implements IWeb3Auth {
@@ -151,7 +151,6 @@ class Web3Auth implements IWeb3Auth {
151151 sessionNamespace : this . options . sessionNamespace ,
152152 } ) ;
153153
154- log . debug ( "init called" ) ;
155154 let projectConfig : ProjectConfigResponse ;
156155 try {
157156 projectConfig = await fetchProjectConfig ( this . options . clientId , this . options . network ) ;
@@ -161,7 +160,7 @@ class Web3Auth implements IWeb3Auth {
161160 const { whitelabel, whitelist } = projectConfig ;
162161 this . options . whiteLabel = merge ( clonedeep ( whitelabel ) , this . options . whiteLabel ) ;
163162 this . options . originData = merge ( clonedeep ( whitelist . signed_urls ) , this . options . originData ) ;
164- log . debug ( `[Web3Auth] _config: ${ JSON . stringify ( this . options ) } ` ) ;
163+ // log.debug(`[Web3Auth] _config: ${JSON.stringify(this.options)}`);
165164
166165 const sessionId = await this . keyStore . get ( "sessionId" ) ;
167166 if ( sessionId ) {
0 commit comments