JWTRefreshTokenBundle
                                
                                 JWTRefreshTokenBundle copied to clipboard
                                
                                    JWTRefreshTokenBundle copied to clipboard
                            
                            
                            
                        Fix token expiration date
Hello maintainers,
Instead of using time() + $this->ttl my suggestion is to use the getValid() method of the token. If you request a new token through /api/token/refresh, you get the latest unix time while the token may expire another timestamp. This fix uses the getValid method and turns it into an timestamp.
As always I am open to suggestions, critical feedback leading to improvements on this PR or comments 👍
I'm checking up to see if anything else is needed to finish and merge this PR.
Just following up. I apologize in advance for bothering you.