Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to get user info from google oauth node js

const response = await oAuth2Client.getToken(code);
const userInfo = JSON.parse(Buffer.from(response.tokens.id_token.split('.')[1], 'base64').toString());

console.log(userInfo);
Comment

PREVIOUS NEXT
Code Example
Javascript :: disable zoom in app 
Javascript :: javascript addeventlistener button 
Javascript :: async map js 
Javascript :: this.setstate is not a function in react native 
Javascript :: js class private 
Javascript :: javascript round to nearest integer 
Javascript :: decimal to base 32 javascript 
Javascript :: string to uppercase 
Javascript :: react js docker 
Javascript :: json vs xml 
Javascript :: js format indian price with commas 
Javascript :: send data using fetch 
Javascript :: javascript error try catch 
Javascript :: jquey datatables 
Javascript :: javascript for...of with Strings 
Javascript :: iframe url redirect 
Javascript :: array includes javascript 
Javascript :: encode password javascript 
Javascript :: how to check empty object js 
Javascript :: add and remove class in jquery 
Javascript :: multi dimensional array javascript 
Javascript :: confluent kafka nodejs 
Javascript :: javascript insertion sort 
Javascript :: how to split an array into two javascript 
Javascript :: mongoose select 
Javascript :: difference between react and react native 
Javascript :: Custom JavaScript URL Builder 
Javascript :: jquery get textarea value 
Javascript :: Object.Values () javascript 
Javascript :: react select error handle 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =