This is a hosted version of token-provider.php, check out the README for what it does. Its source is also available.

If you need a token from an actual IndieAuth flow, you can use the Homebrew Access Token service.