The errors you will actually hit
Four Google-specific failures and what each one really means.
Open this lesson in the learning hubKey points
redirect_uri_mismatch: the URI differs from the registered one - usually http vs https, a port, or a trailing slash.access_blocked: the consent screen is still in Testing and this account is not a listed test user.- No
refresh_token: you omittedaccess_type=offline, or the user had already consented before. invalid_client: the client secret is wrong, or you are using a client id from a different project.- Sensitive scopes need Google verification - a full review that takes weeks, so plan it before launch.
Almost every Google OAuth failure is the redirect URI, Testing mode, or a missing prompt=consent.
This is a reading copy. The full lesson — with the visual explainer, the interactive lab and a Run button for the code — lives in the OAuth with Google course, and every lesson in it is listed on the OAuth with Google contents page.