Skip to content

Commit

Permalink
Fixed headers cannot be passed by reference error, fixes patrickbussm…
Browse files Browse the repository at this point in the history
  • Loading branch information
giannis committed Jun 21, 2023
1 parent 561ae0f commit 8f73707
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,21 @@ Template for this repository was the [LinkedIn](https://github.com/thephpleague/
## License

The MIT License (MIT). Please see [License File](https://github.com/patrickbussmann/oauth2-apple/blob/main/LICENSE) for more information.

## Sync Fork
https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/merging-an-upstream-repository-into-your-fork

```
$ git pull upstream TAG_NANE
$ git push
$ git fetch -t upstream
$ git remote update
$ git push --tags
```

Create Release on GitHub

### UXMZ Diff
On Files:
src/Token/AppleAccessToken.php
3 changes: 2 additions & 1 deletion src/Token/AppleAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function __construct(array $keys, array $options = [])
try {
$decoded = JWT::decode($options['id_token'], $key);
} catch (\UnexpectedValueException $e) {
$decoded = JWT::decode($options['id_token'], $key, ['RS256']);
$headers = new \stdClass();
$decoded = JWT::decode($options['id_token'], $key, $headers);
}
break;
} catch (\Exception $exception) {
Expand Down

0 comments on commit 8f73707

Please sign in to comment.