Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix auth

Steven Teyf9f8ec91d3b5
diff --git a/apps/web/lib/rewardful/api.ts b/apps/web/lib/rewardful/api.ts
index b826bd5f60..d383a4d43e 100644
--- a/apps/web/lib/rewardful/api.ts
+++ b/apps/web/lib/rewardful/api.ts
@@ -27,7 +27,7 @@ export class RewardfulApi {
private async fetch<T>(url: string): Promise<T> {
const response = await fetch(url, {
headers: {
- Authorization: `Bearer ${this.token}`,
+ Authorization: `Basic ${Buffer.from(`${this.token}:`).toString("base64")}`,
},
});