get expiry time from provider

This commit is contained in:
nquidox 2025-09-14 14:13:35 +03:00
parent e051c1d17f
commit 1cb033d526
4 changed files with 22 additions and 9 deletions

View file

@ -90,6 +90,10 @@ func (j *JWT) Parse(token string) (string, error) {
return "", fmt.Errorf("invalid token")
}
func (j *JWT) RefreshExpires() time.Duration {
return j.RefreshExpire
}
func duration(minutes string) time.Duration {
dur, err := strconv.Atoi(minutes)
if err != nil {