Skip to content

Commit 33498ea

Browse files
Update index.ts
1 parent ebcb2ff commit 33498ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ export class TempMail {
9494
*/
9595
async checkCustomDomainLegacy(domain: string, token: string): Promise<Email[]> {
9696

97-
const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`));
97+
const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`), {
98+
headers: {
99+
"Authorization": "Bearer " + this.api_key,
100+
},
101+
});
98102
const r = await raw.json();
99103

100104
let emails: Email[];

0 commit comments

Comments
 (0)