Method: Authlogic::Random.friendly_token

Defined in:
lib/authlogic/random.rb

.friendly_tokenObject

Returns a string in base64url format as defined by RFC-3548 and RFC-4648. We call this a “friendly” token because it is short and safe for URLs.



14
15
16
# File 'lib/authlogic/random.rb', line 14

def self.friendly_token
  SecureRandom.urlsafe_base64(15)
end