Sign-in with twitter using angular

╄→гoц情女王★ 提交于 2019-11-30 22:43:00
Steve Doson

If you use AngularFire2, then you can get it done by just one line and that is

logintwitter(){
    this.afAuth.auth.signInWithPopup(new firebase.auth.TwitterAuthProvider());
  }

I suggest looking at great real world example here https://github.com/gothinkster/angular-realworld-example-app which uses oauth. I also implemented my sample angular app with full working client/server code to login to Facebook, Linkedin and Google https://github.com/anjmao/adify using ExpressJs and PassportJs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!