Skip to content

Commit

Permalink
Merge pull request #5 from magiclabs/Fix-auth-issue
Browse files Browse the repository at this point in the history
Updated public key
  • Loading branch information
vmathur authored Sep 26, 2024
2 parents dc08f44 + 46e3b22 commit 0ed39e9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/MagicProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ const MagicProvider = ({ children }: any) => {

useEffect(() => {
setDidToken(localStorage.getItem("didToken"));
if (process.env.NEXT_PUBLIC_MAGIC_API_KEY) {
const magic = new Magic(process.env.NEXT_PUBLIC_MAGIC_API_KEY || "", {
const magic = new Magic("pk_live_ADAA583390992B34" || "", {
network: {
rpcUrl: "<https://rpc2.sepolia.org/>",
chainId: 11155111,
Expand All @@ -54,9 +53,6 @@ const MagicProvider = ({ children }: any) => {
const web3Provider = new ethers.BrowserProvider(magic.rpcProvider);
setProvider(web3Provider);
setIsLoading(false);
} else {
console.error("NEXT_PUBLIC_MAGIC_API_KEY is not set");
}
}, []);

useEffect(() => {
Expand Down

1 comment on commit 0ed39e9

@vercel
Copy link

@vercel vercel bot commented on 0ed39e9 Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.