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

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.

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.

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.

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 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