jwt-auth icon indicating copy to clipboard operation
jwt-auth copied to clipboard

The 'iat' is not refreshed in refresh() method, which cause the user will eventually kicked out though he keep refreshing token.

Open amos-yau opened this issue 9 months ago • 7 comments

Subject of the issue

Please refer to the issue and comment in the origin repository here: https://github.com/tymondesigns/jwt-auth/issues/2241#issuecomment-2106525613

Your environment:

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version v10.48.10
Package version 2.3.0
PHP version 8.3.6

Steps to reproduce

Scenario and steps is in the above issue url.

Expected behaviour

The new token 'iat' generated by refresh() method shall be renewed as now().

Actual behaviour

The new token 'iat' generated by refresh() method now is fixed the same as old token.

amos-yau avatar May 13 '24 04:05 amos-yau