Method: Auth::Token#initialize
- Defined in:
- lib/auth/token.rb
#initialize ⇒ Token
Returns a new instance of Token.
5 6 7 8 9 |
# File 'lib/auth/token.rb', line 5 def initialize @hex = ActiveSupport::SecureRandom.hex(64) # base64 url, see RFC4648 @token = SecureRandom.base64(15).tr('+/=', '-_ ').strip.delete("\n") end |