Sha256: 2c55ed9492d003f84234f9e394640317062266db4077e2f7be9c8d40dfeb51f0

Contents?: true

Size: 300 Bytes

Versions: 7

Compression:

Stored size: 300 Bytes

Contents

module Capcoauth
  module OAuth
    class AccessToken
      attr_accessor :token
      attr_accessor :user_id

      def initialize(token)
        @token = token
        @user_id = TTLCache.user_id_for(token)
      end

      def verify
        TokenVerifier.verify(self)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
capcoauth-0.7.0 lib/capcoauth/oauth/access_token.rb
capcoauth-0.6.3 lib/capcoauth/oauth/access_token.rb
capcoauth-0.6.2 lib/capcoauth/oauth/access_token.rb
capcoauth-0.6.1 lib/capcoauth/oauth/access_token.rb
capcoauth-0.6.0 lib/capcoauth/oauth/access_token.rb
capcoauth-0.5.1 lib/capcoauth/oauth/access_token.rb
capcoauth-0.5.0 lib/capcoauth/oauth/access_token.rb