We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c8fdb commit f0d47e6Copy full SHA for f0d47e6
README.md
@@ -497,9 +497,9 @@ The block will be called if the refresh action is performed before the access to
497
Thereby it's possible to prohibit users from making refresh calls while their access token is still active.
498
499
```ruby
500
-tokens = session.refresh_by_access_allowed do
+tokens = session.refresh_by_access_payload do
501
# here goes malicious activity alert
502
- raise JWTSession::Errors::Unauthorized, "Refresh action is performed before the expiration of the access token."
+ raise JWTSessions::Errors::Unauthorized, "Refresh action is performed before the expiration of the access token."
503
end
504
```
505
0 commit comments