Skip to content

Commit 96dad91

Browse files
authored
refactor(auth): remove double base url call (#1753)
1 parent 5c68b96 commit 96dad91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/auth/src/OAuth/Testing/TestingOAuthClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public function buildAuthorizationUrl(array $scopes = [], array $options = []):
6464
$this->state = Random\secure_string(16);
6565

6666
$provider = $this->config->createProvider();
67-
$provider->getBaseAuthorizationUrl();
67+
$baseAuthorizationUrl = $provider->getBaseAuthorizationUrl();
6868

6969
$url = sprintf(
7070
'%s/oauth/authorize?redirect_uri=%s&client_id=%s&state=%s',
71-
$this->baseUrl ?? $provider->getBaseAuthorizationUrl(),
71+
$this->baseUrl ?? $baseAuthorizationUrl,
7272
$this->redirectUri,
7373
$this->clientId,
7474
$this->state,

0 commit comments

Comments
 (0)