Skip to content

Commit

Permalink
chore: clarify wording on ParseOptions
Browse files Browse the repository at this point in the history
Clarify that `TimeStamp` and `NonceHasTimestamp` is used for checking clock-skew only.
  • Loading branch information
SalladinBalwer committed Jan 23, 2024
1 parent a3842fc commit aa6076c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ type ParseOptions struct {
// The expected nonce if the authorization server has issued a nonce.
Nonce string

// Used to control if the `iat` field is used to control the proof age.
// Used to control if the `iat` field is within allowed clock-skew.
// If set to true the authorization server has to validate the nonce timestamp itself.
NonceHasTimestamp bool

// The allowed age of the proof. Defaults to 1 minute if not specified.
// The allowed clock-skew on the `iat` of the proof. Defaults to 1 minute if not specified.
TimeWindow *time.Duration

// dpop_jkt parameter that is optionally sent by the client to the authorization server on token request.
Expand Down

0 comments on commit aa6076c

Please sign in to comment.