Comments (1)
<v-btn color="primary" v-on:click="facebookLogin">Login with Facebook</v-btn>
script
<script>
var provider = new firebase.auth.FacebookAuthProvider()
provider.addScope('public_profile')
provider.setCustomParameters({
'display': 'popup'
})
facebookLogin() {
firebase.auth().signInWithPopup(provider).then((result) => {
var token = result.credential.accessToken
var user = result.user.displayName
console.log("token : " + token)
console.log("user : " + user)
alert(user + "님 환영합니다")
this.$emit("child", this.dialog)
this.email= ''
this.password= ''
this.$router.replace('/')
}).catch((err) => {
alert('에러 : ' + err.message)
})
}
from tech-interview-for-developer.
Related Issues (20)
- 이미지 링크 오류 HOT 2
- 이미지 경로 변경에 따른 누락 HOT 1
- JS오류에 대하여 HOT 1
- 원형 큐 구현 관련 HOT 1
- Index 설명 오류 제보드립니다. HOT 1
- Linux/Linux Basic Command.md 명령어 추가 문의 HOT 2
- 퀵 정렬 - bold 설정 HOT 4
- 이분 탐색 코드 HOT 1
- 사이트 링크 오류 : Web -> Spring -> 더티체킹 HOT 1
- ● Data Structrue 오타 HOT 1
- 백엔드 기술 면접 백과사전
- Typing mistake : Lauguage/[Javascript] Object Prototype.md HOT 1
- prepare to interview
- 이진 탐색 트리 삭제 Case.3 HOT 1
- Java Stream 문서 마크다운 오류
- 오탈자 제보입니다.
- python 추가
- 갑자기 repository 가 추가가 되었는데 제외 부탁드립니다. HOT 2
- how to read in English or Chinese HOT 1
- 오탈자 제보드려요 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tech-interview-for-developer.