Hi everyone!
I’m working on an automation and need your advice. Here’s my current challenge:
I’m trying to retrieve a token from a website that uses Google for login.
So far, I’ve been manually copying the token by inspecting the network activity in Chrome.
Here’s what I see in the inspector:
The endpoint: https://api.website.com/login
In the authorization headers, there’s a Bearer token like Bearer eyJhbGci--randomcharacters
.
The response shows:
{
“firebaseToken”: “random characters”,
“token”: “same random characters”
}
When I copy-paste this token and use it in the Authorization header, I can use various API endpoints successfully.
However, the issue arises when the Google session expires or starts a new one—my automation breaks, and I have to repeat the manual copy-paste process.
To mitigate this, I’ve even set up an automation to notify me via email when there’s a failed scenario so I can go and update the token. But I feel like there’s got to be a better way.
-
Is there a way to automate the retrieval of this token without manually inspecting the browser?
-
Can I use Make.com (or any other tool) to manage this process more efficiently?
I’d really appreciate any advice or pointers!
Thanks in advance for your help.