Sign-in with twitter using angular

前端 未结 2 744
我寻月下人不归
我寻月下人不归 2021-01-06 07:47

I am trying to implement singin functioanlity using angular2 , Read from official documentation also from here , But didn\'t get how the flow is going on. my questions are

相关标签:
2条回答
  • 2021-01-06 07:59

    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.

    0 讨论(0)
  • 2021-01-06 08:03

    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());
      }
    
    0 讨论(0)
提交回复
热议问题