{"action":"closed","issue":{"url":"https://api.github.com/repos/react-native-community/react-native-google-signin/issues/559","repository_url":"https://api.github.com/repos/react-native-community/react-native-google-signin","labels_url":"https://api.github.com/repos/react-native-community/react-native-google-signin/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/react-native-community/react-native-google-signin/issues/559/comments","events_url":"https://api.github.com/repos/react-native-community/react-native-google-signin/issues/559/events","html_url":"https://github.com/react-native-community/react-native-google-signin/issues/559","id":377827871,"node_id":"MDU6SXNzdWUzNzc4Mjc4NzE=","number":559,"title":"First login error with Gsuite account","user":{"login":"slaci","id":543367,"node_id":"MDQ6VXNlcjU0MzM2Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/543367?v=4","gravatar_id":"","url":"https://api.github.com/users/slaci","html_url":"https://github.com/slaci","followers_url":"https://api.github.com/users/slaci/followers","following_url":"https://api.github.com/users/slaci/following{/other_user}","gists_url":"https://api.github.com/users/slaci/gists{/gist_id}","starred_url":"https://api.github.com/users/slaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaci/subscriptions","organizations_url":"https://api.github.com/users/slaci/orgs","repos_url":"https://api.github.com/users/slaci/repos","events_url":"https://api.github.com/users/slaci/events{/privacy}","received_events_url":"https://api.github.com/users/slaci/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-06T12:36:34Z","updated_at":"2018-11-07T09:33:35Z","closed_at":"2018-11-07T09:33:35Z","author_association":"NONE","body":"On android, when I sign in to an app with a Gsuite google account for the very first time, then error 12501 or generic 13 (ERROR) occurs. After this error, I can log in with the same account everytime into the same app without any changes. This happens only when the account wasn't linked to the device before and it works perfectly with my personal gmail account. Tried with more than 1 Gsuite account, all have the same error.\r\n\r\nThe first login is a bit longer with a Gsuite account, because it asks:\r\n* for Drive backup\r\n* set up a pin for the device (corp policy)\r\n\r\nThese happen in the same popup as the rest, so shouldn't be any difference.\r\n\r\nThis only happens if the device have never seen the Gsuite account before. If I just delete the account in the phone's user settings, then the first login works. So you must wipe data for the emulator, or use a different account.\r\n\r\nIt seems to be a very minor issue. Our use case was to user test our app on 1 device where people login with their own accounts, but all of them got error for the first login. So I reproduced this in a minimal app. Sadly it needs firebase because I have no idea how to setup with normal clould web client id...\r\n\r\n## Steps to Reproduce\r\n\r\n* git clone https://github.com/slaci/rct-gsignin\r\n* yarn\r\n* copy a firebase `google-services.json` into `android/app` (I can give one in private)\r\n* in App.js fill `webClientId` (I can give one in private)\r\n* wipe data for emulator (![emulator](https://user-images.githubusercontent.com/543367/48063207-9dacfe80-e1c4-11e8-8eb0-e217b2e5c30d.png) ) or use real device where the user not logged in yet **ever**\r\n* react-native run-android\r\n* click on the google login icon and sign in with Gsuite account\r\n\r\n## Expected Behavior\r\n\r\nThe first login for any google account should be successful if everything is good, so the app should display a touchable \"Sign out\" text with the logged in user's email.\r\n\r\n## Actual Behavior\r\n![screenshot_1541498788](https://user-images.githubusercontent.com/543367/48064535-5de81600-e1c8-11e8-8e2f-c41581266328.png)\r\n\r\nClicking on the login icon after this error signs in the user without problem.\r\n\r\n## Environment\r\n\r\n- react-native: 0.57.4\r\n- react-native-google-signin: 1.0.0-rc8\r\n- com.google.gms:google-services:4.2.0\r\n- com.android.tools.build:gradle:3.1.4\r\n- Gradle 4.4\r\n\r\nSame happens on Samsung A5 2017 with all updates (Android 8.0) and on an old Sasmung S5 with Android 6.0.1.\r\n\r\nI haven't tried this on IOS.\r\n"}}
{"actor":{"display_login":"slaci"}}