Skip to content

Commit c1c2841

Browse files
committed
Update Client.php
Fixed URL creation in `Client::getOauth2Info()`.
1 parent ad66cc8 commit c1c2841

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Client.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public function getOauth2Info(): array
8787
$baseUrl = \substr($info['oauth2'], 0, -\strlen('/oauth2/authorize'));
8888
}
8989

90+
$baseUrl = \rtrim($baseUrl, '/');
91+
9092
return [
9193
'urlAuthorize' => $baseUrl . '/oauth2/authorize',
9294
'urlAccessToken' => $baseUrl . '/oauth2/token',

0 commit comments

Comments
 (0)