From f02b0cf1d7ef8002bec90eb20be227a2d5a634e6 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Thu, 25 Apr 2024 04:18:45 -0700 Subject: [PATCH] Use Bearer authorization scheme --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 042af91..ce5d502 100644 --- a/index.js +++ b/index.js @@ -218,7 +218,7 @@ class Replicate { const headers = {}; if (auth) { - headers["Authorization"] = `Token ${auth}`; + headers["Authorization"] = `Bearer ${auth}`; } headers["Content-Type"] = "application/json"; headers["User-Agent"] = userAgent;