module SinatraAuthToken
Public Instance Methods
auth_token()
click to toggle source
# File lib/sinatra_auth_token.rb, line 13 def auth_token @@auth_token end
init_auth_token!()
click to toggle source
# File lib/sinatra_auth_token.rb, line 17 def init_auth_token! @@auth_token = ENV["AUTH_TOKEN"] || SecureRandom.hex(8) STDOUT.puts "AUTH_TOKEN IS: #{@@auth_token}" end