diff --git a/lib/rodauth/features/jwt.rb b/lib/rodauth/features/jwt.rb index 070875ef..85f246ee 100644 --- a/lib/rodauth/features/jwt.rb +++ b/lib/rodauth/features/jwt.rb @@ -59,11 +59,9 @@ def session end def clear_session - super - if use_jwt? - session.clear - set_jwt - end + return super unless use_jwt? + session.clear + set_jwt end def jwt_secret