dimanche 28 janvier 2018

EmberJs and passport-google-oauth

i am new to emberjs and passport js google oauth2. I am trying to create a authentication with an third party app like google to handle my password. So far, i’ve tested my backend (nodejs) and it persist the data user. My issue is that, how can i transfer my data (user data) to the front-end(emberjs) with the callback url (/auth/google/callback). My second issue, when i try to make an ajax call get (localhost:3000/auth/google), it doesn't redirect me to the google page to login...instead it refresh my UI.

User-component.js (Emberjs front-end

server.js, where i implement google passport strategy




Aucun commentaire:

Enregistrer un commentaire