Error when presenting data in HMTL.
Display Name, Bio and image is not showing.
HTML TEMPLATE:
var template = handlebars.compile(
Twitch Auth Sample
Access Token
{{accessToken}}
Refresh Token
{{refreshToken}}
Display Name
{{display_name}}
Bio
{{bio}}
Image
{{logo}}
`);`
req.session.passport.user is returing:
`{
data: [
{
id: 'XXXXXX',
login: 'XXXXXX',
display_name: 'XXXXXXXXXX',
type: '',
broadcaster_type: '',
description: `"XXXXXXXXXX"`,
profile_image_url: 'XXXXXXX',
offline_image_url: 'XXXXXXX',
view_count: XXXXX
}
],
accessToken: 'XXXXXX',
refreshToken: 'XXXXXXX''
}
`
Here you see that data[0].XXXX is the correct place for display_name, description and profile_image.
Regards
Codekuu
Error when presenting data in HMTL. Display Name, Bio and image is not showing.
HTML TEMPLATE:
var template = handlebars.compile(