Method: Mints::Contact#logout

Defined in:
lib/contact.rb

#logoutObject

Logout.

Ends a contact session previously logged.

Example

@mints_contact.("[email protected]", "password")
@mints_contact.logout


98
99
100
101
102
103
104
# File 'lib/contact.rb', line 98

def logout
  response = @client.raw("post", "/contacts/logout") if session_token?
  if response["success"]
    @client.session_token = nil
  end 
  return response
end