Skip to content

Commit 4121f89

Browse files
committed
Changed to use micro sec as a nonce
1 parent af6d5e9 commit 4121f89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v2/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (c *Client) newRequest(ctx context.Context, method, spath string, body io.R
151151
userAgent := fmt.Sprintf("GoClient/%s (%s)", version, runtime.Version())
152152
token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{
153153
"path": spath,
154-
"nonce": time.Now().Format("20060102150405000000000"),
154+
"nonce": time.Now().UnixNano(),
155155
"token_id": c.ApiTokenID,
156156
})
157157

0 commit comments

Comments
 (0)