Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 17ca098

Browse files
JoshuaJoshua
Joshua
authored and
Joshua
committedOct 28, 2024
1.0
1 parent a0cb91a commit 17ca098

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For a front-end implementation in Vue, please visit https://github.com/jhuntdev/
1111
- Built on JSON - Reduce parsing time and overhead
1212
- Request Batching - Save bandwidth and reduce load times
1313
- Compact Payloads - Save even more bandwidth
14-
- Single Endpoint - Reduce complexity and improve data privacy
14+
- Single Endpoint - Reduce complexity and facilitate introspection
1515
- Fully Encrypted - Improve data privacy
1616

1717
## Installation

‎examples/leaf/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
};
1515

1616
$authMiddleware = function($body, &$context) {
17-
if (isset($context['headers']['auth']) && $context['headers']['auth'] === 'myToken') {
17+
if (isset($context['headers']) && $context['headers']['auth'] === 'myToken') {
1818
$context['user'] = [
1919
// user info for example
2020
];

‎examples/slim/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
};
1919

2020
$authMiddleware = function($body, &$context) {
21-
if (isset($context['headers']['auth']) && $context['headers']['auth'] === 'myToken') {
21+
if (isset($context['headers']) && $context['headers']['auth'] === 'myToken') {
2222
$context['user'] = [
2323
// user info for example
2424
];

0 commit comments

Comments
 (0)
Please sign in to comment.