Skip to content

Commit f0d47e6

Browse files
authored
Fix README.md
1 parent 63c8fdb commit f0d47e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ The block will be called if the refresh action is performed before the access to
497497
Thereby it's possible to prohibit users from making refresh calls while their access token is still active.
498498

499499
```ruby
500-
tokens = session.refresh_by_access_allowed do
500+
tokens = session.refresh_by_access_payload do
501501
# here goes malicious activity alert
502-
raise JWTSession::Errors::Unauthorized, "Refresh action is performed before the expiration of the access token."
502+
raise JWTSessions::Errors::Unauthorized, "Refresh action is performed before the expiration of the access token."
503503
end
504504
```
505505

0 commit comments

Comments
 (0)