Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Jan 21, 2025
1 parent a26665b commit c11d21b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/useSiweAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getAddress } from 'viem';
import { createSiweMessage } from 'viem/siwe';
import { useAccount } from 'wagmi';

import { api } from '../services/api';
import { api, baseURL } from '../services/api';

const useSiweAuth = () => {
const { chainId } = useAccount();
Expand All @@ -19,6 +19,8 @@ const useSiweAuth = () => {

const authenticationAdapter = createAuthenticationAdapter({
getNonce: async () => {
console.log({ baseURL });

const { data } = await api.get('auth/siwe/nonce');
return data.nonce;
},
Expand Down

0 comments on commit c11d21b

Please sign in to comment.