You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,21 @@ mutation RefreshAuthToken {
121
121
}
122
122
```
123
123
124
+
## Filters
125
+
126
+
The plugin offers some filters to hook into.
127
+
128
+
### Change Auth Token expiration
129
+
130
+
**Note: For security, we highly recommend, that the Auth Token is short lived. So do not set this higher than 300 seconds unless you know what you are doing.**
131
+
132
+
```php
133
+
add_filter('graphql_jwt_auth_expire', 60);
134
+
```
135
+
136
+
- Argument: Expiration in seconds
137
+
- Default: 300
138
+
124
139
125
140
## Example using GraphiQL
126
141

[@chinedufn](https://github.com/chinedufn), and [@bshaffer](https://github.com/bshaffer)!
141
+
67
142
#### 4.0.0 / 2016-07-17
68
143
- Add support for late static binding. See [#88](https://github.com/firebase/php-jwt/pull/88) for details. Thanks to [@chappy84](https://github.com/chappy84)!
69
144
- Use static `$timestamp` instead of `time()` to improve unit testing. See [#93](https://github.com/firebase/php-jwt/pull/93) for details. Thanks to [@josephmcdermott](https://github.com/josephmcdermott)!
0 commit comments