get expiry time from provider
This commit is contained in:
parent
e051c1d17f
commit
1cb033d526
4 changed files with 22 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue