
Question:
i am using google api OAuth2 for signing into gmail account when for gmail sign in i go for auth then i got the error: Error: invalid_scope
This app hasn't been verified to access: {invalid = [<a href="https://www.googleapis.com/auth/contacts]" rel="nofollow">https://www.googleapis.com/auth/contacts]</a>} Please contact the developer for assistance. Are you the developer? If this project needs these scopes, sign in to an account with access to edit your project and try again. If not, contact the developer for help. Please help regarding this where i am wrong.
Answer1:Seems they are certain scopes that require you to explicitly seek google verification in order to perform Oauth dance. See related posts below
<a href="https://stackoverflow.com/questions/44329890/error-invalid-scope-this-app-hasnt-been-verified-to-access" rel="nofollow">Error: invalid_scope - This app hasn't been verified to access</a>
<a href="https://www.cloudsponge.com/blog/google-oauth-reviews/" rel="nofollow">https://www.cloudsponge.com/blog/google-oauth-reviews/</a>
Answer2:Scopes are like when a site that logs in through Facebook, and Facebook asks 'This site would like permission to: get your email address (scope), access friends list (another scope) etc.
You must send the scope you need in your request headers.