Search code examples
node.jsgoogle-cloud-platformoauthnodemailer

OAuth 2.0 Playground Error 403: access_denied


I am getting an Authorization Error from OAuth 2.0 Playground when trying to Authorize APIs. I have checked the permissions on the app multiple times (as I am the OWNER), I have fixed security issues(google asking questions), tried multiple browsers and multiple email accounts(under new projects). Below is the error message:

Error 403: access_denied
The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer (recipe.tracker.app@gmail.com).
Learn more
Request Details
access_type=offline
response_type=code
redirect_uri=https://developers.google.com/oauthplayground
prompt=consent
client_id=765247627523-mhvqb7sc2or6rittk8dp0ti7b1ba8eel.apps.googleusercontent.com
scope=https://mail.google.com

Solution

  • Daniyal dehleh's original answer that solved my problem

    Solution to my OAuth 2.0 Playground error:

    1. Go to your developer console.
    2. Go to OAuth consent screen.
    3. Go to +Add users, under test users.
    4. Add the users for the test (even the owner email address if not working without it)