fix auth token rotate

This commit is contained in:
Pete Matsyburka committed 2024-01-12 09:45:40 +02:00
1 parent f74ad050b4
commit bcd5e1da98
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ class AccessToken < ApplicationRecord
belongs_to :user
before_validation :set_sha256, on: :create
before_validation :set_sha256
attribute :token, :string, default: -> { SecureRandom.base58(TOKEN_LENGTH) }