We found that the cookie's key-value pairs order matters for this class to work properly. If the idToken is the last cookie in the cookie string, then a ; won't be added at the end of it. However, the Regex for extracting the idToken value currently expect this to always be there.
This PR updates the RegEx to account for both matching a final ; and for matching the end of the string value.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Hi Tim,
Nice work spotting this and thanks for submitting a PR. I've merged it and expect to release a new version of the package by the end of the week.
Cheers,
Jean
Issue # (if available): n/a
Description of changes:
We found that the cookie's key-value pairs order matters for this class to work properly. If the idToken is the last cookie in the cookie string, then a
;
won't be added at the end of it. However, the Regex for extracting the idToken value currently expect this to always be there.This PR updates the RegEx to account for both matching a final
;
and for matching the end of the string value.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.