Class: Authenticate::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/authenticate/token.rb

Overview

A secure token, consisting of a big random number.

Class Method Summary collapse

Class Method Details

.newObject


6
7
8
# File 'lib/authenticate/token.rb', line 6

def self.new
  SecureRandom.hex(20).encode('UTF-8')
end