https://linen.dev logo
l
Hi, I have an active connected account for my google calendar. But when i want to use that conenction i get this "Failed to list events. Status: 401. Response: { "error": { "code": 401, "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "errors": [ { "message": "Invalid Credentials", "domain": "global", "reason": "authError", "location": "Authorization", "locationType": "header" } ], "status": "UNAUTHENTICATED" } } " Does composio handle the refreshing of the token. If not what is the best way to handle this myself?
u
Hey @lolwanheda, yes, Composio handles auth refresh. Could you share your connected account Id?
l
ca_0B6we5245dqY I had to disconnect and reconnect to get it to work, thats the old connectionID
It worth noting we are using our clinetID from our google app
u
I see, thanks for the information. We are checking this.
l
Hey @Uday any updates?
u
Hey @lolwanheda, it might've happened due to these reasons: 1. Revoked the access token. 2. Changed Google account password or enabled 2-Step Verification. 3. Google Workspace admin might have changed any security or session control settings recently. 4. Each user can hold ~50 live refresh-tokens per OAuth client; taking the 51st silently kills the oldest. Did you create a new connection (51st connection) to the same OAuth app? 5. Re-authorised the same user with a different client-ID or set of scopes can rotate the refresh-token and invalidate the stored one. 6. Some domains (Google Workspace) enforce periodic token revocation.
l
Okay thank you!