mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-26 01:24:03 +00:00
ラッパーを通してトークンをセットするように
This commit is contained in:
parent
ef45ca2707
commit
6149843b84
|
@ -45,8 +45,9 @@ const KidShiftAuthIntentHandler = {
|
||||||
|
|
||||||
const tokenResponse = await AuthService.login(loginCode);
|
const tokenResponse = await AuthService.login(loginCode);
|
||||||
if (tokenResponse) {
|
if (tokenResponse) {
|
||||||
handlerInput.attributesManager.setPersistentAttributes(tokenResponse);
|
const attributeUtils = new AttributeUtils(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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user