aws-lex-web-ui icon indicating copy to clipboard operation
aws-lex-web-ui copied to clipboard

error reapplyTokenToSessionAttributes

Open jo9553 opened this issue 3 years ago • 0 comments

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; } } },

jo9553 avatar Jan 06 '21 01:01 jo9553