lib/ext/doorkeeper/access_token.rb
###
# Returns the time the refresh token should expire. This is based on the original_token_created_at time and the
# injected configuration refresh_token_expires_in. If refresh token expiration is disabled this will return nil.
###
Returns the time the refresh token should expire. This is based on the original_token_created_at time and the
injected configuration refresh_token_expires_in. If refresh token expiration is disabled this will return nil.
Returns the time the refresh token should expire . This is based on the original_token_created_at time and the injected configuration refresh_token_expires_in . If refresh token expiration is disabled this will return nil .
def refresh_token_expiration_time
      return unless Doorkeeper.configuration.refresh_token_expires_in
      if original_token_created_at
        original_token_created_at + Doorkeeper.configuration.refresh_token_expires_in
      else
        created_at + Doorkeeper.configuration.refresh_token_expires_in
      end
    end
def refresh_token_expiration_time return unless Doorkeeper . configuration . refresh_token_expires_in if original_token_created_at original_token_created_at + Doorkeeper . configuration . refresh_token_expires_in else created_at + Doorkeeper . configuration . refresh_token_expires_in end end
Returns the time the refresh token should expire.
Returns the time the refresh token should expire .
# if the original_token_created_at time exists determine expiration time from that, otherwise use created_at time.