Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't go further that the auth route #5

Open
NicolasMRTNS opened this issue Feb 5, 2022 · 0 comments
Open

Can't go further that the auth route #5

NicolasMRTNS opened this issue Feb 5, 2022 · 0 comments

Comments

@NicolasMRTNS
Copy link

Hey everyone,

I have been trying to get the bot working, but I am not able to. I have the same code but when I try to test it, I make a call to the /auth route but then, the redirection does not work. I can't go further.
When I try to click on the /auth route myself, I am always redirected to the URL asking me if I want to authorize the third party app. When I click the button to confirm, then the callback is executed and the tweet is sent.

But the thing is, I'd like to get it working on its own. Maybe I don't know how to use the PubSub from Firebase ?

I do this:

exports.scheduleJobs = functions.pubsub.schedule('every 3 hours').onRun(() => {
  fetch('http://127.0.0.1:5000/twitter-bot/us-central1/auth');
});

(The URL is localhost as an example, I do fetch the URL provided by firebase when I execute firebase deploy.)

Any help is appreciated,
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant