devise-api
devise-api copied to clipboard
Problems with revoke and refresh
I set up my project according to the docs and I can not get the revoke and refresh endpoints to work. The rest works perfectly but refresh always gives me this as http response:
{
"error": "invalid_token",
"error_description": [
"Invalid token"
]
}
with a 401 status code even though I can use /users/tokens/info
with that exact token.
For revoke I get this error in the console and a 500 status code:
Failure/Error:
post '/users/tokens/revoke', headers: {
'Authorization' => "Bearer #{token}"
}
ArgumentError: wrong number of arguments (given 2, expected 3)
The error is thrown in Devise::Api::TokensCrontroller#revoke
in line 350.
I appreciate any help.