out386/aria-telegram-mirror-bot

OAuth Issue

abu-zaid opened this issue · 2 comments

There isnt an 'others' option in credentials-oauth client id.

I don't know why that option is missing for you. Using the other options you told me were present (in PM) properly will make it harder to set up for users, as this bot usually runs on headless servers. Use the following as a workaround until I decide whether to use an OAuth callback.

  • In src/drive/drive-auth.ts replace all instances of installed with web in lines 32, 33, & 34.
  • Delete client_secret.json
  • In the Cloud Console, create a "Web" client ID, and add http://localhost:xxxxx in the "Authorized redirect URIs" section. Replace xxxxx with any unused port number for your local machine.
  • Download the JSON again
  • After granting access this time, you should get an error page. The URL in your browser will be something like: http://localhost:6580/?code=xxxxxx&scope=xxxx. Copy the value of that code argument, and paste that in the terminal.

Works. Thanks . :)