How to link Alexa with cloud firestore
How to link Alexa with cloud firestore
I have created the credential in Google cloud platform and when I link my Alexa skill it returns an access token.
var accessToken = this.event.session.user.accessToken;
console.log(accessToken);
admin.auth().verifyIdToken(accessToken)
.then(function(decodedToken) {
var uid = decodedToken.uid;
console.log(uid);
// ...
}).catch(function(error) {
console.log(error);
// Handle error
});
Error:
Decoding Firebase ID token failed. Make sure you passed the entire string JWT which represents an ID token.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I cannot use this access token to authenticate in firebase. They give me the above error and asks gor google ID token
– Mohan Burman
Jun 29 at 9:11