From 31a3758bbe793afe22cf77ededdb43341d94636b Mon Sep 17 00:00:00 2001 From: JuLi0n21 Date: Wed, 10 Jan 2024 02:25:01 +0100 Subject: [PATCH] add vercel ass output --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 436d35d..6d13f1f 100644 --- a/server.js +++ b/server.js @@ -39,7 +39,7 @@ app.get('/callback', async (req, res) => { 'client_secret': process.env.CLIENT_SECRET, 'code': authorizationCode, 'grant_type': 'authorization_code', - 'redirect_uri': `http://localhost:${port}/callback` + 'redirect_uri': `https://${process.env.VERCEL_BRANCH_URL}/callback` }); fetch(tokenEndpoint, {