Skip to content

Commit 977b022

Browse files
committed
Replace accessAuth call with hardcoded response in Web3Provider for SIWE disabled state
1 parent 57adfb4 commit 977b022

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib/providers/Web3Provider.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Favicon from '@assets/favicon.png';
2-
import { accessAuth } from '@lib/api/backend';
32
import { config, domains, environment, projectId } from '@lib/config';
43
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
54
import { EthAddress } from '@typedefs/blockchain';
@@ -35,7 +34,12 @@ const siweConfig: SIWEConfig = {
3534
const siweMessage = new SiweMessage(message);
3635
const chainId = siweMessage.chainId;
3736
const address = siweMessage.address;
38-
const response = await accessAuth({ message, signature });
37+
38+
const response = {
39+
accessToken: '123',
40+
refreshToken: '456',
41+
expiration: 2819859200,
42+
}; // TODO: Remove (SIWE disabled)
3943

4044
localStorage.setItem('chainId', chainId.toString());
4145
localStorage.setItem('address', address);

0 commit comments

Comments
 (0)