Skip to content

Commit 85d2ca2

Browse files
feedback
1 parent cf6fb10 commit 85d2ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web/src/ee/features/permissionSyncing/tokenRefresh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ const tryRefreshToken = async (
192192
let url: string;
193193
if (baseUrl) {
194194
url = provider === 'github'
195-
? `${baseUrl}/login/oauth/access_token`
196-
: `${baseUrl}/oauth/token`;
195+
? new URL('/login/oauth/access_token', baseUrl).toString()
196+
: new URL('/oauth/token', baseUrl).toString();
197197
} else if (provider === 'github') {
198198
url = 'https://github.com/login/oauth/access_token';
199199
} else if (provider === 'gitlab') {

0 commit comments

Comments
 (0)