mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
ラッパーを通してトークンをセットするように
This commit is contained in:
parent
ef45ca2707
commit
6149843b84
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user