Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const googlelogIn = async () => {
  2. try {
  3. const { type, user, accessToken } = await Expo.Google.logInAsync({
  4. iosClientId: '687916247467-6dt3274n9544kfk53udm2di107vvmahe.apps.googleusercontent.com',
  5. });
  6. if (type === 'success') {
  7. console.log(user, accessToken);
  8. }
  9. } catch ({ message }) {
  10. alert(`login: ${message}`);
  11. }
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement