google does not honor the token i am getting from module and i am getting Error 401 : Unauthorized Invalid credentials.
Using Ti.GoogleSignIn module by Hansemann, i am trying to access my google drive. Problem is that the google does not honor the token i am getting from module and i am getting Error 401 : Unauthorized Invalid credentials.
On the other hand, if i use the token from Google developer playground, it works as expected.
I am setting the scope in the following way
Google.initialize({
clientID : "***********************************************.apps.googleusercontent.com",
scope : ['https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/drive.appdata', 'https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/drive.metadata'] // Scope
});
Could it be that the scope is not implemented for the android version I opened the GooglesigninModule.java and didnt see any requestscopt GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestScopes(Scopes.DRIVE_APPFOLDER) //missing?! .build()
Please help me with this issue!! I'm struggling with this issue for days
Thanks in advanced!