Method: Doorkeeper::Config::Builder#revoke_previous_authorization_code_token

Defined in:
lib/doorkeeper/config.rb

#revoke_previous_authorization_code_tokenObject

Only allow one valid access token obtained via authorization code per client. If a new access token is obtained before the old one expired, the old one gets revoked (disabled by default)



122
123
124
# File 'lib/doorkeeper/config.rb', line 122

def revoke_previous_authorization_code_token
  @config.instance_variable_set(:@revoke_previous_authorization_code_token, true)
end