-
Notifications
You must be signed in to change notification settings - Fork 9
Nested operation CheckEmailTokenRedisEquality
Vladislav Trotsenko edited this page Sep 26, 2019
·
2 revisions
The point of this nested operation is checking jwt email token equality.
module Api::V1::Users::Lib::Operation
class CheckEmailTokenRedisEquality < ApplicationOperation
step :tokens_eql? # find the same jwt email tokin in redis
fail Macro::AddContractError(base: 'errors.email_token.already_used')
end
end
RubyGarage is a leading software development and consulting company in Eastern Europe. Our main expertise includes Ruby and Ruby on Rails, but we successfully employ other technologies to deliver the best results to our clients. Check out our portfolio for even more exciting works!