Method: OctopusAuth::Revoke#execute

Defined in:
lib/octopus_auth/revoke.rb

#executeObject



11
12
13
14
15
16
17
18
# File 'lib/octopus_auth/revoke.rb', line 11

def execute
  @access_token.expired_at = Time.now.utc
  @access_token.active = false

  @access_token.save!

  OctopusAuth::Decorators::Default.new(@access_token)
end