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.

add reference

Kiran Kf2898cf0949f
diff --git a/apps/web/app/api/oauth/token/exchange-code-for-token.ts b/apps/web/app/api/oauth/token/exchange-code-for-token.ts
index 8fe4a1678b..70cc9526fe 100644
--- a/apps/web/app/api/oauth/token/exchange-code-for-token.ts
+++ b/apps/web/app/api/oauth/token/exchange-code-for-token.ts
@@ -180,11 +180,13 @@ export const exchangeAuthCodeForToken = async (
}),
]);
+ // https://www.oauth.com/oauth2-servers/access-tokens/access-token-response/
const response = {
access_token: accessToken,
refresh_token: refreshToken,
token_type: "Bearer",
expires_in: OAUTH_ACCESS_TOKEN_LIFETIME,
+ scope: scopes,
};
return response;
diff --git a/apps/web/app/api/oauth/token/refresh-access-token.ts b/apps/web/app/api/oauth/token/refresh-access-token.ts
index 88be4bf65e..216cb4ea86 100644
--- a/apps/web/app/api/oauth/token/refresh-access-token.ts
+++ b/apps/web/app/api/oauth/token/refresh-access-token.ts
@@ -140,6 +140,7 @@ export const refreshAccessToken = async (
}),
]);
+ // https://www.oauth.com/oauth2-servers/making-authenticated-requests/refreshing-an-access-token/
const response = {
access_token: newAccessToken,
refresh_token: newRefreshToken,