Skip to content

Commit f55cd09

Browse files
committed
Add PSR-6 cache provider
1 parent e4659c8 commit f55cd09

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"require-dev": {
1717
"nunomaduro/collision": "^5.3|^6|^7|^8",
1818
"orchestra/testbench": "^6.18|^7|^8",
19-
"phpunit/phpunit": "^9.3|^10|^11"
19+
"phpunit/phpunit": "^9.3|^10|^11",
20+
"symfony/cache" : "^6.4|^7.0"
2021
},
2122
"autoload": {
2223
"psr-4": {

src/GsvAuth0Provider.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function __construct(?string $domain, ?string $audience)
2323
$this->configuration = new SdkConfiguration(
2424
domain: $domain,
2525
audience: [$audience],
26+
tokenCache: resolve('cache.psr6'),
2627
clientId: 'dummy', // Don't need a real value as we only validate jwt's
2728
clientSecret: 'dummy', // Don't need a real value as we only validate jwt's
2829
cookieSecret: 'dummy', // Don't need a real value as we only validate jwt's

0 commit comments

Comments
 (0)