Fix Token Expiry Bug (#1408)

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood 2020-03-25 14:40:37 +00:00 committed by GitHub
parent 1057ef6acb
commit 511ebd8ec2
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, Id: id,
Roles: options.Roles, Roles: options.Roles,
Metadata: options.Metadata, Metadata: options.Metadata,
SecretExpiry: int64(options.SecretExpiry.Seconds()), SecretExpiry: int64(options.SecretExpiry.Nanoseconds()),
}) })
if err != nil { if err != nil {
return nil, err return nil, err