Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify wording on ParseOptions #16

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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