Sha256: fb2d40b2b2012e79ed6ea3fd790252f00191e999448c19a877b3e372ccdfbc2f
Contents?: true
Size: 633 Bytes
Versions: 12
Compression:
Stored size: 633 Bytes
Contents
module Doorkeeper module OAuth class TokenResponse attr_accessor :token def initialize(token) @token = token end def body { 'access_token' => token.token, 'token_type' => token.token_type, 'expires_in' => token.expires_in, 'refresh_token' => token.refresh_token, 'scope' => token.scopes_string } end def status :ok end def headers { 'Cache-Control' => 'no-store', 'Pragma' => 'no-cache', 'Content-Type' => 'application/json; charset=utf-8' } end end end end
Version data entries
12 entries across 12 versions & 1 rubygems