From f83f23a9882af2e9a0b2435b17b774dab8b84e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nejdet=20Kadir=20Bekta=C5=9F?= <50639655+nejdetkadir@users.noreply.github.com> Date: Fri, 27 Sep 2024 19:50:40 +0300 Subject: [PATCH] docs: update readme (#45) --- Gemfile.lock | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c941155..4e1697f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -259,6 +259,7 @@ GEM PLATFORMS arm64-darwin-21 arm64-darwin-22 + arm64-darwin-23 DEPENDENCIES awesome_print diff --git a/README.md b/README.md index 1bb43f0..ad10de3 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,8 @@ Devise.setup do |config| # Before callbacks api.before_sign_in = ->(_params, _request, _resource_class) { } api.before_sign_up = ->(_params, _request, _resource_class) { } - api.before_refresh = ->(_params, _request, _resource_class) { } - api.before_revoke = ->(_params, _request, _resource_class) { } + api.before_refresh = ->(_token_model, _request) { } + api.before_revoke = ->(_token_model, _request) { } end end ```