Skip to content

Commit f50156e

Browse files
committed
fix: dedicated api key for functions
1 parent 2c27441 commit f50156e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/netlify/functions/authUser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const authUser = async (event) => {
7878
console.info(`Environment variables: ${envVars}`);
7979

8080
const alchemyChain = isProductionDeployment() ? "arb-mainnet" : "arb-sepolia";
81-
const alchemyRpcURL = `https://${alchemyChain}.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`;
81+
const alchemyRpcURL = `https://${alchemyChain}.g.alchemy.com/v2/${process.env.ALCHEMY_FUNCTIONS_API_KEY}`;
8282
const provider = new ethers.providers.JsonRpcProvider(alchemyRpcURL);
8383
await siweMessage.verify({ signature, nonce: nonceData.nonce, time: new Date().toISOString() }, { provider });
8484
} catch (err) {

0 commit comments

Comments
 (0)