Google OAuth error
Error 401: invalid_client
Google doesn't accept the client ID and secret your app sent. Enter the client ID and matching secret of one Web application client from the same Google project, then connect again.
What the error means
Common causes
- The secret belongs to another client, or to a client in another Google project.[1]
- A copy error: a missing character, or a space or line break at the end.
- ID and secret come from a different client than the Web application client that Publit.Si's setup creates.[3]
- The client was deleted. Google then names the error
deleted_client; deleted clients can be restored within 30 days.[4]
How to fix it
- Google Cloud: Google Auth Platform → Clients → open the Web application client you use.
- Copy the Client ID. Google shows the client secret only right after creating the client. Don't have it any more? Click Add Secret on the client details page to make a new one.[5][6]
- In Publit.Si: Settings › Platform setup › YouTube → Enter credentials, paste both, then Save and apply.[7]
- Reconnect once: Accounts → open the account → Reconnect.[7]
How Publit.Si handles it
Questions
Can I see my old client secret again?
No. Google shows the secret only when the client is created. Add a new secret on the client details page and enter it in Publit.Si.
Do I need one client per YouTube channel?
No. One Web application client in your Google project is enough; every channel connects through it.
Why doesn't reconnecting help?
The problem is the app's credentials, not your account's sign-in. A new sign-in sends the same wrong pair.
Related
Sources
- [1] Google: OAuth 2.0 for Web Server Applications: https://developers.google.com/identity/protocols/oauth2/web-server, checked November 17, 2026
„The OAuth client secret is incorrect. Review the OAuth client configuration, including the client ID and secret used for this request.“
- [2] Google Cloud Help: Manage OAuth Clients: https://support.google.com/cloud/answer/15549257?hl=en, checked November 17, 2026
„Similar to how you would use a username and password to log to online services, many applications use a client ID paired with a client secret. The client secret adds an extra layer of security, acting like your app's password.“
- [3] Publit.Si docs: Connect YouTube: publit.si/docs/platforms/youtube
- [4] Google: OAuth 2.0 for Web Server Applications: https://developers.google.com/identity/protocols/oauth2/web-server, checked November 17, 2026
„The OAuth client being used to make the request has been deleted. Deletion can happen manually or automatically in the case of unused clients. Deleted clients can be restored within 30 days of the deletion.“
- [5] Google Cloud Help: Manage OAuth Clients: https://support.google.com/cloud/answer/15549257?hl=en, checked November 17, 2026
„Note: Your application's client secret will only be shown after you create the client. Store this information in a secure place such as Google Cloud Secret Manager because it will not be visible or accessible again.“
- [6] Google Cloud Help: Manage OAuth Clients: https://support.google.com/cloud/answer/15549257?hl=en, checked November 17, 2026
„On the client details page, click Add Secret on the right side to add a new secret.“
- [7] Publit.Si docs: Troubleshooting: publit.si/docs/troubleshooting