'How to log out of GitHub API

I make simple GitHub example app. I created a login function, but not a sign out function. How to create a log out function?

I've been using this API https://docs.github.com/en/rest/reference/apps#delete-an-app-authorization

Only this error popped up.

{"message":"Not Found","documentation_url":"https://docs.github.com/rest"}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source