Skip to content

Commit

Permalink
Changed to use micro sec as a nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjjpppp committed Jul 17, 2020
1 parent af6d5e9 commit 4121f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (c *Client) newRequest(ctx context.Context, method, spath string, body io.R
userAgent := fmt.Sprintf("GoClient/%s (%s)", version, runtime.Version())
token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{
"path": spath,
"nonce": time.Now().Format("20060102150405000000000"),
"nonce": time.Now().UnixNano(),
"token_id": c.ApiTokenID,
})

Expand Down

0 comments on commit 4121f89

Please sign in to comment.