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 loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode');
|
||||||
const tokenResponse = await AuthService_1.default.login(loginCode);
|
const tokenResponse = await AuthService_1.default.login(loginCode);
|
||||||
if (tokenResponse) {
|
if (tokenResponse) {
|
||||||
handlerInput.attributesManager.setPersistentAttributes(tokenResponse);
|
const attributeUtils = new AttributeUtils_1.default(handlerInput);
|
||||||
await handlerInput.attributesManager.savePersistentAttributes();
|
await attributeUtils.setToken(tokenResponse.accessToken);
|
||||||
|
await attributeUtils.saveAttributes();
|
||||||
return handlerInput.responseBuilder
|
return handlerInput.responseBuilder
|
||||||
.speak('Login successful')
|
.speak('Login successful')
|
||||||
.getResponse();
|
.getResponse();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user