Sha256: e98fdc67b60b6014e3c448b67f9246ba3aae7d0a56e1f5db3e80f33348404bfc

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 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
        nil unless @token
        TokenVerifier.verify(self)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capcoauth-0.4.0 lib/capcoauth/oauth/access_token.rb
capcoauth-0.3.3 lib/capcoauth/oauth/access_token.rb
capcoauth-0.3.2 lib/capcoauth/oauth/access_token.rb
capcoauth-0.3.1 lib/capcoauth/oauth/access_token.rb
capcoauth-0.3.0 lib/capcoauth/oauth/access_token.rb
capcoauth-0.2.3 lib/capcoauth/oauth/access_token.rb
capcoauth-0.2.2 lib/capcoauth/oauth/access_token.rb
capcoauth-0.2.1 lib/capcoauth/oauth/access_token.rb