From 511ebd8ec28734a3c6b5b8a916a7277164e7e886 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Wed, 25 Mar 2020 14:40:37 +0000 Subject: [PATCH] Fix Token Expiry Bug (#1408) Co-authored-by: Ben Toogood --- auth/service/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/service/service.go b/auth/service/service.go index e544e3f1..5feacb1b 100644 --- a/auth/service/service.go +++ b/auth/service/service.go @@ -73,7 +73,7 @@ func (s *svc) Generate(id string, opts ...auth.GenerateOption) (*auth.Account, e Id: id, Roles: options.Roles, Metadata: options.Metadata, - SecretExpiry: int64(options.SecretExpiry.Seconds()), + SecretExpiry: int64(options.SecretExpiry.Nanoseconds()), }) if err != nil { return nil, err