Fix Token Expiry Bug (#1408)
Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
parent
1057ef6acb
commit
511ebd8ec2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user