# 401 error in Google Calendar API using Auth0 and React

**URL:** <https://community.auth0.com/t/401-error-in-google-calendar-api-using-auth0-and-react/137506>\
**Category:** Get Help\
**Tags:** connections-management-api, management-api\
**Created:** [June 26, 2024, 2:15pm UTC](https://community.auth0.com/t/401-error-in-google-calendar-api-using-auth0-and-react/137506 "2024-06-26T14:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mongor](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mongor/32/49709_2.png) [@Mongor](https://community.auth0.com/u/Mongor)\
**Post date:** [June 26, 2024, 2:15pm UTC](https://community.auth0.com/t/401-error-in-google-calendar-api-using-auth0-and-react/137506/1 "2024-06-26T14:15:13Z")

</div>

Hi, I use for login Auth0 (Google, LinkedIn, Facebook), and for Calendar started working with the Google Calendar API, after creating all connections, the login works fine but when I try to connect to the Calendar I see the 401 error (Unauthorized).

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/6/269c7a4710cd3d6581aa9dbb5f5e424c2cbda6ae.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/6/569b05be76e254ad1248ce92286b538d912b347e.png)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 26, 2024, 2:36pm UTC](https://community.auth0.com/t/401-error-in-google-calendar-api-using-auth0-and-react/137506/2 "2024-06-26T14:36:34Z")

</div>

Hi @Mongor

Welcome to the Auth0 Community!

The issue that occurs for you may be that you are using the AccessToken provisioned by Auth0, which you need to use to gain the access token that would let you access the Google Calendar API. Check this doc page → [Call an Identity Provider API](https://auth0.com/docs/authenticate/identity-providers/calling-an-external-idp-api#from-the-backend)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 10, 2024, 2:37pm UTC](https://community.auth0.com/t/401-error-in-google-calendar-api-using-auth0-and-react/137506/3 "2024-07-10T14:37:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
