devise-two-factor icon indicating copy to clipboard operation
devise-two-factor copied to clipboard

Lockbox instead of ActiveRecord encrypted attributes

Open alec-c4 opened this issue 11 months ago • 1 comments

Hey! Is it possible to use lockbox gem instead of ActiveRecord encrypted attributes?

alec-c4 avatar Mar 15 '24 13:03 alec-c4

@alec-c4 it is possible to use with lockbox but you can't use the default otp_secret becuase it is encrypted by active record encryption mechanism, I ended up using another column/attribute called otp_secret_custom with lockbox, then in some methods related to this OTP gem you can pass it because the default one is otp_secret

AlfonsoUceda avatar May 13 '24 09:05 AlfonsoUceda