javascript - meteor get google accesstoken after redirect -


i'm implementing invite people in app, want use googgle contacts,

if use accounts-google package authenticating user, complex process, beause don't want store user information,

i want 1 time auth, i'm searching client side solutions,

    var url='https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/contacts.readonly&client_id=5558545-3n8vg6u4nu2hm1gmuj1dbjib28p33qss.apps.googleusercontent.com&redirect_uri=http://localhost:3000/_oauth/google&response_type=token' var newwindow = window.open(url, 'name', 'height=600,width=450'); 

on click of invite button i'm calling working well, how read accesstoken returned window.

i can't find how this?

i tried using http method

http.get(url, {}, function(e,r){         console.log(e,r);       }); 

but throwing error, not working.

how read accesstoekn popup? or there alternatives that?

window.location.hash contains fragment part of url.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -