From 6149843b84191fb0b298167f64ebf7453050c6c8 Mon Sep 17 00:00:00 2001 From: rca Date: Wed, 17 Jul 2024 09:28:27 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A9=E3=83=83=E3=83=91=E3=83=BC=E3=82=92?= =?UTF-8?q?=E9=80=9A=E3=81=97=E3=81=A6=E3=83=88=E3=83=BC=E3=82=AF=E3=83=B3?= =?UTF-8?q?=E3=82=92=E3=82=BB=E3=83=83=E3=83=88=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8bc71d6..4dd94e0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,8 +45,9 @@ const KidShiftAuthIntentHandler = { const tokenResponse = await AuthService.login(loginCode); if (tokenResponse) { - handlerInput.attributesManager.setPersistentAttributes(tokenResponse); - await handlerInput.attributesManager.savePersistentAttributes(); + const attributeUtils = new AttributeUtils(handlerInput); + await attributeUtils.setToken(tokenResponse.accessToken); + await attributeUtils.saveAttributes(); return handlerInput.responseBuilder .speak('Login successful') .getResponse();