From e9fa551a5ee35331527779cfbee433474ae05724 Mon Sep 17 00:00:00 2001 From: Okanlawon Emmanuel Date: Fri, 29 Sep 2017 17:27:56 +0100 Subject: [PATCH] Fix Issue With Twitter Auth on Mobile --- resources/assets/js/components/site/EventPage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/site/EventPage.vue b/resources/assets/js/components/site/EventPage.vue index ecb2fd8..6c166f1 100644 --- a/resources/assets/js/components/site/EventPage.vue +++ b/resources/assets/js/components/site/EventPage.vue @@ -291,8 +291,10 @@ export default { attendEvent() { let provider = new firebase.auth.TwitterAuthProvider(); + firebase.auth().signInWithRedirect(provider); + provider.setCustomParameters({ 'screen_name': 'forLoopNigeria' }); - firebase.auth().signInWithPopup(provider).then((result) => { + firebase.auth().getRedirectResult().then((result) => { var user = result.user; this.user = user; this.$root.$emit('show::modal', 'confirmModal');