Description
Given:
When:
I authenticate successfully with Optimize
Then:
The expiry timestamp of the cookie is set according to the configured `auth.token.lifeMin`
of the current timezone, but that same timestamp is returned with the UTC timezone without instant conversion.
E.g. server zone is UTC+1, the calculated expiry time is 2020-03-11T15:43:10.973+0100 and returned as 2020-03-11T15:43:10.973Z
Expected:
The expiry timestamp of the cookie is set according to the configured `auth.token.lifeMin` value, converted to UTC at the same instant and returned
E.g. server zone is UTC+1, the calculated expiry time is 2020-03-11T15:43:10.973+0100 and returned as 2020-03-11T14:43:10.973Z