From 56af82623065058c66de038737c1f7dd87c9dc6d Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Wed, 25 Mar 2020 17:03:45 +0000 Subject: [PATCH] Update auth to pass seconds and not nanoseconds (#1409) 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 5feacb1b..e544e3f1 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.Nanoseconds()), + SecretExpiry: int64(options.SecretExpiry.Seconds()), }) if err != nil { return nil, err