mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
built
This commit is contained in:
parent
6149843b84
commit
59c1a8c6ee
|
@ -66,8 +66,9 @@ const KidShiftAuthIntentHandler = {
|
|||
const loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode');
|
||||
const tokenResponse = await AuthService_1.default.login(loginCode);
|
||||
if (tokenResponse) {
|
||||
handlerInput.attributesManager.setPersistentAttributes(tokenResponse);
|
||||
await handlerInput.attributesManager.savePersistentAttributes();
|
||||
const attributeUtils = new AttributeUtils_1.default(handlerInput);
|
||||
await attributeUtils.setToken(tokenResponse.accessToken);
|
||||
await attributeUtils.saveAttributes();
|
||||
return handlerInput.responseBuilder
|
||||
.speak('Login successful')
|
||||
.getResponse();
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user