You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First thanks for all your hard work in creating this module!
I'm trying to hook this up (with rails and devise_token_auth) and noticed that Auth.prototype.signOut doesn't supply the opt parameter to the ajax request, like you do in Auth.prototype.emailSignIn
i.e.
$.ajax({
url: signOutUrl,
context: this,
method: 'DELETE',
data: opts, // <-- this is not present??
I want to pass pass the csrf_token that Rails requires to prevent the "Can't verify CSRF token authenticity".
Or am I doing this incorrectly?
Thanks for you help.
The text was updated successfully, but these errors were encountered:
@vlod - signOut works with the current authenticated user, so it shouldn't require any params. All the data that it needs is stored in the current session.
I would recommend setting protect_from_forgery to null_session for API routes if that's possible. This plugin will provide the equivalent of CSRF protection.
Hi,
First thanks for all your hard work in creating this module!
I'm trying to hook this up (with rails and devise_token_auth) and noticed that Auth.prototype.signOut doesn't supply the opt parameter to the ajax request, like you do in Auth.prototype.emailSignIn
i.e.
$.ajax({
url: signOutUrl,
context: this,
method: 'DELETE',
data: opts, // <-- this is not present??
I want to pass pass the csrf_token that Rails requires to prevent the "Can't verify CSRF token authenticity".
Or am I doing this incorrectly?
Thanks for you help.
The text was updated successfully, but these errors were encountered: