module Touth::Store

Constants

ACCESS_TOKENS_STORE_KEY
CURRENTS_STORE_KEY

Public Class Methods

access_tokens() click to toggle source
# File lib/touth/store.rb, line 9
def access_tokens
  Thread.current[ACCESS_TOKENS_STORE_KEY] ||= {}
end
clear!() click to toggle source
# File lib/touth/store.rb, line 17
def clear!
  Thread.current[ACCESS_TOKENS_STORE_KEY] = {}
  Thread.current[CURRENTS_STORE_KEY] = {}
end
currents() click to toggle source
# File lib/touth/store.rb, line 13
def currents
  Thread.current[CURRENTS_STORE_KEY] ||= {}
end