-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't log out #15
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use
grape_devise_token_auth
in an existing Rails + Devise app[1].I don't want to use
devise_token_auth
's session controller b/c I need my API to have these endpoints. No API endpoints outside Grape.My current problem is with logout. I reset the token on the resource, make warden log it out, but then it complains because
AuthHeaders
tries to access the user, and afterwards that user's no-longer-existing token (for a given client). Basically what I'm not seeing is something like#skip_auth_headers
.Maybe I'm missing something big, but is there any way to force it to skip?
[1]
grape_token_auth
is not good for this because it breaks, in a way I can't totally understand, the app's authentication using devise (first it changed some validations on my user model, then Devise complained about not having any strategy to authenticate and I stopped looking). Also, gta's session api is not well described to use with swagger.The text was updated successfully, but these errors were encountered: