Why my authendicate token is not working?

Well you could use implicit auth with a static HTML/JS file that you just open using the file:// syntax in a web browser.

But once you get the oAuth key you won’t need to generate again unless you deauth the app