markitosgv / JWTRefreshTokenBundle

Implements a Refresh Token system over Json Web Tokens in Symfony
MIT License
663 stars 159 forks source link

get refresh token expire time #154

Open dmatora opened 5 years ago

dmatora commented 5 years ago

with lexik/jwt-authentication-bundle I can decode login_check response and get both access_token and expire_time and can check if token expired without making any calls to server

how can I know when refresh token will expire without hardcoding value to both server and client or calling to server? how about implementing same approach lexik/jwt-authentication-bundle uses?

norkunas commented 5 years ago

@dmatora you could update RefreshToken entity setRefreshToken method to include expiry time at the end.

dmatora commented 5 years ago

@norkunas well I already have a hack doing the job, was hoping for a proper solution