Skip to content

Commit 142934f

Browse files
add request method to iweb3auth
1 parent 392a83f commit 142934f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Web3Auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class Web3Auth implements IWeb3Auth {
295295
this.webBrowser.openAuthSessionAsync(loginUrl, dataObject.params.redirectUrl);
296296
}
297297

298-
async request(chainConfig: ChainConfig, method: string, params: unknown[], path: string | null = "wallet/request"): Promise<string> {
298+
async request(chainConfig: ChainConfig, method: string, params: unknown[], path: string = "wallet/request"): Promise<string> {
299299
if (!this.ready) throw InitializationError.notInitialized("Please call init first.");
300300
if (!this.sessionManager.sessionId) {
301301
throw LoginError.userNotLoggedIn();

src/types/interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface IWeb3Auth {
5656
userInfo: () => State["userInfo"];
5757
enableMFA: () => Promise<boolean>;
5858
launchWalletServices: (chainConfig: ChainConfig, path?: string) => Promise<void>;
59+
request(chainConfig: ChainConfig, method: string, params: unknown[], path?: string): Promise<string>;
5960
}
6061

6162
export type WalletLoginParams = {

0 commit comments

Comments
 (0)