Method: Mints::BaseController#mints_contact_logout

Defined in:
lib/mints/controllers/base_controller.rb

#mints_contact_logoutObject

Mints Contact Logout.

Destroy session from mints.cloud and delete local session cookie

[View source]

37
38
39
40
41
42
43
44
# File 'lib/mints/controllers/base_controller.rb', line 37

def mints_contact_logout
    # Logout from mints
    @mints_contact.logout
    # Delete local cookie
    cookies.delete(:mints_contact_session_token)
    cookies.delete(:mints_contact_id)
    @contact_token = nil
end