# Error: Access Denied - secret must be a string or bufferor a KeyObject

**URL:** <https://community.auth0.com/t/error-access-denied-secret-must-be-a-string-or-bufferor-a-keyobject/186223>\
**Category:** Get Help\
**Tags:** google-social-connection, connections\
**Created:** [May 2, 2025, 12:32am UTC](https://community.auth0.com/t/error-access-denied-secret-must-be-a-string-or-bufferor-a-keyobject/186223 "2025-05-02T00:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sree1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sree1/32/70936_2.png) [@sree1](https://community.auth0.com/u/sree1)\
**Post date:** [May 2, 2025, 12:32am UTC](https://community.auth0.com/t/error-access-denied-secret-must-be-a-string-or-bufferor-a-keyobject/186223/1 "2025-05-02T00:32:35Z")

</div>

Hello,

I’m integrating Google Social Login with my Auth0 application. I have copied the Client ID and client secret from my Google Cloud Project to the Google social connection setting in Auth0. I get this error while testing the connection.  
I’ve verified that the Client ID and secret are copied correctly. What am I missing? Wish the error was more descriptive.

{  
“error”: “access\_denied”,  
“error\_description”: “secret must be a string or bufferor a KeyObject”  
}

Sree.

---

<div class="post-metadata">

**Author:** ![dezy568fema](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dezy568fema/32/74578_2.png) [@dezy568fema](https://community.auth0.com/u/dezy568fema)\
**Post date:** [May 2, 2025, 3:00pm UTC](https://community.auth0.com/t/error-access-denied-secret-must-be-a-string-or-bufferor-a-keyobject/186223/3 "2025-05-02T15:00:26Z")

</div>

> [@sree1](#):
>
> I’m integrating Google Social Login with my Auth0 application. I have copied the Client ID and client secret from my Google Cloud Project to the Google social connection setting in Auth0. I get this error while testing the connection.  
> I’ve verified that the Client ID and secret are copied correctly. What am I missing? Wish the error was more descriptive.
> 
> {  
> “error”: “access\_denied”,  
> “error\_description”: “secret must be a string or bufferor a KeyObject”  
> }

suggests that Auth0 is receiving a malformed or unexpected format for the client secret from the Google configuration — likely not a string or it has some encoding/character issue.

---

<div class="post-metadata">

**Author:** ![sree1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sree1/32/70936_2.png) [@sree1](https://community.auth0.com/u/sree1)\
**Post date:** [May 2, 2025, 4:04pm UTC](https://community.auth0.com/t/error-access-denied-secret-must-be-a-string-or-bufferor-a-keyobject/186223/4 "2025-05-02T16:04:06Z")

</div>

Thank you for your message.

I get the same error when I remove my keys and default to Auth0 development keys. Makes me want to believe that something other than google-oauth client secret may be causing it.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 15, 2025, 9:47pm UTC](https://community.auth0.com/t/error-access-denied-secret-must-be-a-string-or-bufferor-a-keyobject/186223/5 "2025-05-15T21:47:30Z")

</div>

Hi @sree1,

Welcome to the Auth0 Community!

It seems that the error you experienced indicates that your Client Secret is not a string, buffer, or KeyObject.

I have just followed the installation steps outlined in [here](https://marketplace.auth0.com/integrations/google-social-connection) and managed to configure it successfully.

Seeing you still experienced the same error even when using the Auth0 development keys, could you please share the Auth0 Log of the failed login event?

Thank you,  
Rueben
