Hello,I add digits login on my site. It's work fine.But I can't understand how create logout method for web.I need logout from site and next logout from digits
Can anybody help me?
PS: Sorry for my English.
I'd recommend logging into digits.com and then checking out how the logout is handled there by logging into your account and examining the source and handling.
I checked out digits logout from my account, inside logout form used "authenticity_token". How should I get "authenticity_token" using digits API?
did you get an answer to this?
@bonnell The form action says "/logout" so we have no idea whats happening on backend to make the logout successful. Second the authenticity token thing is also not very explained. Can you please be a little more specific on what calls we need to make to do the logout?
Thanks for the thoughts on this @bullzeye. While we work on making an explicit Logout call from the SDK, the best approach is to remove your current session information for the user and then when the user tries to log back into the website, we'll go through our standard check to confirm if the user is coming from the number they entered previously or not.
I can't remove the cookie set by the digits embed because it's on another domain. Or what do you mean by "remove your current session information for the user"?
However you track a current user's logged in session for your website, you would need to remove that so Digits would know that the user is logged out.
-MikePS: I've removed your duplicate post on another thread.
Ok. So how can I let digits know that a user logged out? Can I make an API call to logout a certain user? If that is not possible I need to know when a user clicks the log out button in the Digits widget. Which way do I have to use?