README.md in intercom-rails-0.3.8 vs README.md in intercom-rails-0.4.0
- old
+ new
@@ -60,16 +60,17 @@
Feel free to mail us: team@intercom.io, if you're still having trouble.
## Configuration
### API Secret
-If you want to use Identity Verification, ensure you set your API secret in `config/initializers/intercom.rb`:
+It is possible to enable Identity Verification for the Intercom Messenger and you can find the documentation in how to [here](https://developers.intercom.com/docs/enable-secure-mode-on-your-web-product). If you want to use this feature, ensure you set your Identity Verification Secret as the API secret in `config/initializers/intercom.rb`:
```ruby
config.api_secret = '123456'
```
-**Note: This example is just for the sake of simplicity, you should never include your api secret in source control. Instead, you should use the Rails [secret config](http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml) feature.**
+**Note: This example is just for the sake of simplicity, you should never include this secret in source control. Instead, you should use the Rails [secret config](http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml) feature.**
+
### Shutdown
If you use Intercom Respond combined with another product like Engage, any user that uses a shared computer and browser with someone else will be able to see the most recently logged in user’s conversation history until the cookie expires.
Because of this, it’s very important to properly shutdown Intercom when a user’s session on your app ends (via manually or automatically logging out).
@@ -113,20 +114,20 @@
# You logic here
protected
def intercom_shutdown
- IntercomRails::ShutdownHelper.intercom_shutdown(session, cookies)
+ IntercomRails::ShutdownHelper.intercom_shutdown(session, cookies, request.domain)
end
end
```
#### Using another service
If you use another service than Devise or if you implemented your own authentication service, you can call the following method in a controller to shutdown Intercom on logout.
```ruby
-IntercomRails::ShutdownHelper::intercom_shutdown_helper(cookies)
+IntercomRails::ShutdownHelper::intercom_shutdown_helper(cookies, domain)
```
**Be aware that if you call this method before a 'redirect_to' (quite common on logout) it will have no impact** as it is impossible to update cookies when you use a redirection.
But you can use the same logic as the `devise` implementation above.