Update auth to pass seconds and not nanoseconds (#1409)

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood 2020-03-25 17:03:45 +00:00 committed by GitHub
parent 511ebd8ec2
commit 56af826230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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