Skip to content

Commit f88a98d

Browse files
examples: Remove extra setAccessKey call. (#1469)
* examples: Remove extra setAccessKey call. * examples: fix broken redirect
1 parent 4e0fd83 commit f88a98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/idtoken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
************************************************/
5959
if (isset($_GET['code'])) {
6060
$token = $client->fetchAccessTokenWithAuthCode($_GET['code']);
61-
$client->setAccessToken($token);
6261

6362
// store in the session also
6463
$_SESSION['id_token_token'] = $token;
6564

6665
// redirect back to the example
6766
header('Location: ' . filter_var($redirect_uri, FILTER_SANITIZE_URL));
67+
return;
6868
}
6969

7070
/************************************************

0 commit comments

Comments
 (0)