method

decrypt_and_verify

rails latest stable - Class: ActiveSupport::Messages::Rotator::Encryptor

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

decrypt_and_verify(*args, on_rotation: @on_rotation, **options)
public

No documentation available.

# File activesupport/lib/active_support/messages/rotator.rb, line 21
        def decrypt_and_verify(*args, on_rotation: @on_rotation, **options)
          super
        rescue MessageEncryptor::InvalidMessage, MessageVerifier::InvalidSignature
          run_rotations(on_rotation) { |encryptor| encryptor.decrypt_and_verify(*args, **options) } || raise
        end