syl20lego / insomnia-plugin-aws-cognito-token

Insomnia plugin for AWS Cognito
MIT License
44 stars 8 forks source link

Unable to save because of parse error #2

Closed kossmoboleat closed 5 years ago

kossmoboleat commented 5 years ago

When I enter the fields as needed the plugin successfully creates a token, but then when I close the dialog Insomnia still complains about the syntax of the expression and it's not saved then. The issue seems similar to this one: https://github.com/getinsomnia/insomnia/issues/1388

Screen Shot 2019-03-22 at 08 50 24

I've also tried to enter the expression directly in Nunjucks power user mode, but there's still an error.

syl20lego commented 5 years ago

Thanks for raising this issue, I updated the screen shoot. The variable need to be enclose in double quotes ".

Sorry about that, hope this works for you.

kossmoboleat commented 5 years ago

Nice! Thanks, that works. This is a nice tool and it's cool that you replied so quickly.

There's a slight inconsistency in the screenshots now because the environment variable should be called COGNITO_TOKEN instead of COGNIATOA_TOKEN.

syl20lego commented 5 years ago

thanks, it's a pleasure to help, sorry for the typo, it is fixed now