We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebcb2ff commit 33498eaCopy full SHA for 33498ea
src/index.ts
@@ -94,7 +94,11 @@ export class TempMail {
94
*/
95
async checkCustomDomainLegacy(domain: string, token: string): Promise<Email[]> {
96
97
- const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`));
+ const raw = (await fetch(`https://api.tempmail.lol/custom/${token}/${domain}`), {
98
+ headers: {
99
+ "Authorization": "Bearer " + this.api_key,
100
+ },
101
+ });
102
const r = await raw.json();
103
104
let emails: Email[];
0 commit comments