CheckScopes function and getAuthUrl authorize support

for detecting missing scopes and upgrading users