Sha256: 8be66ba828acda422d70af3c4aa7c1bf6c3c8165e35e6c623bd2470b889ca40e
Contents?: true
Size: 434 Bytes
Versions: 8
Compression:
Stored size: 434 Bytes
Contents
module Clearance # Random token used for password reset and remember tokens. # Clearance tokens are also public API and are intended to be used anywhere # you need a random token to correspond to a given user (e.g. you added an # email confirmation token). class Token # Generate a new random, 20 byte hex token. # # @return [String] def self.new SecureRandom.hex(20).encode('UTF-8') end end end
Version data entries
8 entries across 8 versions & 1 rubygems