Method: ContactAuthHelper#mints_contact_signed_in?
- Defined in:
- lib/mints/helpers/contact_auth_helper.rb
#mints_contact_signed_in? ⇒ Boolean
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/mints/helpers/contact_auth_helper.rb', line 50 def mints_contact_signed_in? begin # Check status in mints # Check status in mints response = @mints_contact.status status = response['success'] || false rescue => e # Handle the client Unauthorized error # if mints response is negative delete the session cookie .delete(:mints_contact_session_token) status = false end status end |