forked from rubygarage/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Nested operation CheckEmailTokenRedisEquality
Vladislav Trotsenko edited this page Oct 21, 2020
·
1 revision
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