aws-lex-web-ui
aws-lex-web-ui copied to clipboard
error reapplyTokenToSessionAttributes
The error "reapplyTokensToSessionAttributes" keeps showing in the console when posting a text message to the bot. I checked the mutations.js and found that is a console.error('reapplyTokensToSessionAttributes') statement, I am not sure what the exact meaning of this, is it a real error? or just want to override the eslint checking? The bot response seems working fine and doesnt find any other issue. Please advice. Thanks so much.
In mutation.js, line 360: reapplyTokensToSessionAttributes(state) { console.error('reapplyTokensToSessionAttributes'); if (state) { console.error('setting attributes if they exist'); if (state.tokens.idtokenjwt) { console.error('found idtokenjwt'); state.lex.sessionAttributes.idtokenjwt = state.tokens.idtokenjwt; } if (state.tokens.accesstokenjwt) { console.error('found accesstokenjwt'); state.lex.sessionAttributes.accesstokenjwt = state.tokens.accesstokenjwt; } if (state.tokens.refreshtoken) { console.error('found refreshtoken'); state.lex.sessionAttributes.refreshtoken = state.tokens.refreshtoken; } } },