We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf6fb10 commit 85d2ca2Copy full SHA for 85d2ca2
packages/web/src/ee/features/permissionSyncing/tokenRefresh.ts
@@ -192,8 +192,8 @@ const tryRefreshToken = async (
192
let url: string;
193
if (baseUrl) {
194
url = provider === 'github'
195
- ? `${baseUrl}/login/oauth/access_token`
196
- : `${baseUrl}/oauth/token`;
+ ? new URL('/login/oauth/access_token', baseUrl).toString()
+ : new URL('/oauth/token', baseUrl).toString();
197
} else if (provider === 'github') {
198
url = 'https://github.com/login/oauth/access_token';
199
} else if (provider === 'gitlab') {
0 commit comments