We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb0e82 commit 1fae8c4Copy full SHA for 1fae8c4
README.md
@@ -115,6 +115,19 @@ echo "Decode:\n" . print_r($decoded_array, true) . "\n";
115
?>
116
```
117
118
+Using JWKs
119
+----------
120
+
121
+```php
122
+// Set of keys. The "keys" key is required. For example, the JSON response to
123
+// this endpoint: https://www.gstatic.com/iap/verify/public_key-jwk
124
+$jwks = ['keys' => []];
125
126
+// JWK::parseKeySet($jwks) returns an associative array of **kid** to private
127
+// key. Pass this as the second parameter to JWT::decode.
128
+JWT::decode($payload, JWK::parseKeySet($jwks), $supportedAlgorithm);
129
+```
130
131
Changelog
132
---------
133
0 commit comments