Skip to content

Commit e5bc56f

Browse files
committed
Send userId instead of accessToken
1 parent 2085e94 commit e5bc56f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controllers/AuthCodeController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public function getRedirectUri()
9494
* @api
9595
* @param string[] $scopes
9696
* @param string|null $email - This email address will be used to pre-populate the login page.
97-
* @param string|null $accessToken - User's anonymous access token, if it exists
97+
* @param string|null $userId - User id if known
9898
* @return string
9999
* @throws \InvalidArgumentException
100100
* @throws \Exception
101101
*/
102-
public function startAuthorizationGrant(array $scopes, ?string $email=null, ?string $accessToken=null): string
102+
public function startAuthorizationGrant(array $scopes, ?string $email=null, ?string $userId=null): string
103103
{
104104
$this->ensureExternalProvidersExist();
105105

@@ -112,7 +112,7 @@ public function startAuthorizationGrant(array $scopes, ?string $email=null, ?str
112112
'response_type' => 'code',
113113
'scope' => join(' ', $scopes),
114114
'email' => $email,
115-
'user_id' => $accessToken,
115+
'user_id' => $userId,
116116
];
117117

118118
return $this->getConfigProvider()->getNprAuthorizationServiceHost() . '/v2/authorize?' . http_build_query($queryParams);

0 commit comments

Comments
 (0)