Skip to content

Firebase deploy and tokenRefresh in bots #5

@aner87

Description

@aner87

Hello and thank you for you amazing work. I love this repo: it allowed me, even if I was new to NodeJS, to create a Telegram Bot that I successfully deployed on Firebase.

I soon realized though that, after some time the bot doesn't get HTTP requests, it stops working for good, until I re-deploy it. Googling around, I came to the conclusion that it's a matter of Firebase token refreshing. Nonetheless, I can't find a way to make the bot successfully refresh it, since all the documentation I can find refers on website's user logins IDs...

Can someone help me figuring out some JS code to keep my bot running even after Firebase catalogs my current token as expired?
I'm using the JSON form '**.key' file Firebase provides me here

Thank you so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions