Skip to content

Commit 87a078d

Browse files
authored
Merge pull request #12 from magiclabs/use-secret-key
Use secret key for api express
2 parents a096e65 + 5f7de7d commit 87a078d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/tee-client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ export async function tee(path: TeeEndpoint, jwt: string, init?: RequestInit) {
88
headers: {
99
"Content-Type": "application/json",
1010
Authorization: `Bearer ${jwt}`,
11-
"X-Magic-API-Key": process.env.MAGIC_API_KEY ?? "",
11+
"X-Magic-Secret-Key": process.env.MAGIC_API_KEY ?? "",
1212
"X-Magic-Chain": "ETH",
1313
"X-OIDC-Provider-ID": process.env.OIDC_PROVIDER_ID ?? "",
14-
"X-Magic-Referrer":
15-
"https://nextauth-api-wallets-express-demo.vercel.app",
1614
...(init?.headers || {}),
1715
},
1816
cache: "no-store",

0 commit comments

Comments
 (0)