devise-api icon indicating copy to clipboard operation
devise-api copied to clipboard

Problems with revoke and refresh

Open felixwortmann opened this issue 7 months ago • 0 comments

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.

felixwortmann avatar Jul 18 '24 11:07 felixwortmann