This is a complement to @Awea's answer. Use togather with this.
Check the rail routing table for destroy_user_session .
For example, create an auth token to record a route table as follows:
destroy_user_session DELETE /auth/sign_out(.:format) devise_token_auth/sessions
But the default method for the activeadmin :get exit link does not work.
For it to work correctly, add also config / initializers / active_admin.rb and:
config.logout_link_method = :delete
oklas source share