Skip to content

Commit 6a503e9

Browse files
committed
Lint + types location
1 parent 496cae6 commit 6a503e9

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"module": "dist/lib.esm/index.js",
1616
"unpkg": "dist/singleFactorAuth.umd.min.js",
1717
"jsdelivr": "dist/singleFactorAuth.umd.min.js",
18-
"types": "dist/types/index.d.ts",
18+
"types": "dist/lib.cjs/types/index.d.ts",
1919
"author": "Torus Labs",
2020
"homepage": "https://github.com/Web3Auth/single-factor-auth#readme",
2121
"license": "ISC",

src/Web3Auth.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import { INodeDetails, KEY_TYPE, TORUS_SAPPHIRE_NETWORK, TORUS_SAPPHIRE_NETWORK_
33
import { fetchLocalConfig } from "@toruslabs/fnd-base";
44
import { SessionManager } from "@toruslabs/session-manager";
55
import { keccak256, Torus, TorusKey } from "@toruslabs/torus.js";
6-
import { AuthUserInfo, IStorage, MemoryStore, SafeEventEmitter, subkey, WEB3AUTH_NETWORK, type WEB3AUTH_NETWORK_TYPE } from "@web3auth/auth";
6+
import {
7+
type AuthUserInfo,
8+
type IStorage,
9+
MemoryStore,
10+
SafeEventEmitter,
11+
subkey,
12+
WEB3AUTH_NETWORK,
13+
type WEB3AUTH_NETWORK_TYPE,
14+
} from "@web3auth/auth";
715
import {
816
ADAPTER_EVENTS,
917
ADAPTER_STATUS,
@@ -338,7 +346,7 @@ export class Web3Auth extends SafeEventEmitter<Web3AuthSfaEvents> implements IWe
338346
let decodedUserInfo: Partial<Auth0UserInfo>;
339347
try {
340348
decodedUserInfo = decodeToken<Auth0UserInfo>(idToken).payload;
341-
} catch (error) {
349+
} catch {
342350
decodedUserInfo = loginParams.fallbackUserInfo;
343351
}
344352
const userInfo: AuthUserInfo = {

src/asyncStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IStorage } from "@web3auth/auth";
1+
import { type IStorage } from "@web3auth/auth";
22

33
import { IAsyncStorage, ISecureStore } from "./interface";
44

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TORUS_LEGACY_NETWORK, type TORUS_NETWORK_TYPE, TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants";
2-
import { AuthUserInfo, IStorage } from "@web3auth/auth";
2+
import { type AuthUserInfo, type IStorage } from "@web3auth/auth";
33
import {
44
type AdapterEvents,
55
CustomChainConfig,

0 commit comments

Comments
 (0)