Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import { FIREBASE } from './promiseMiddleware';
  2.  
  3. export const googleLogin = (callBack) => ({
  4. [FIREBASE]: {
  5. withFirebase: (firebase, providers) => firebase.auth().signInWithPopup(providers.google),
  6. types: ['GOOGLE_AUTH', 'GOOGLE_AUTH_SUCCESS', 'GOOGLE_AUTH_FAILURE'],
  7. callBack
  8. }
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement