Update auth to pass seconds and not nanoseconds (#1409)
Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
parent
511ebd8ec2
commit
56af826230
@ -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.Nanoseconds()),
|
SecretExpiry: int64(options.SecretExpiry.Seconds()),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user