I'm trying to do google authentication in my website, where the user gets authenticated on a page. After authentication, it generates a code which contains access_token
and refresh_token
, and I want to send it to my Node server.
I know Xhttp
is a way but I want to avoid that.
So I tried using handle bars. But they only work for html right?
Is there anyway I could use something like helpers
to send my code to the server?
I tried to get around some posts like:
How can I share code between Node.js and the browser? (which is quite old, Node must've evolved till then right ?)
Sending data from javascript/html page to Express NodeJS server (I didn't understand this one honestly)
I'm new to Node.js so any guesses or any reference to the docs?