Sha256: 7f192d1335b82e2e2084e46a93d4e4fd6833b779c9b2323a97d358edcd71754a
Contents?: true
Size: 775 Bytes
Versions: 4
Compression:
Stored size: 775 Bytes
Contents
# frozen_string_literal: true module Doorkeeper module OAuth class TokenResponse attr_reader :token def initialize(token) @token = token end def body { "access_token" => token.plaintext_token, "token_type" => token.token_type, "expires_in" => token.expires_in_seconds, "refresh_token" => token.plaintext_refresh_token, "scope" => token.scopes_string, "created_at" => token.created_at.to_i, }.reject { |_, value| value.blank? } end def status :ok end def headers { "Cache-Control" => "no-store, no-cache", "Content-Type" => "application/json; charset=utf-8", } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems