fosite icon indicating copy to clipboard operation
fosite copied to clipboard

Example in documentation mistake

Open MatteoGioioso opened this issue 3 years ago • 1 comments

Preflight checklist

Describe the bug

This is not a bug, it is just a minor issue in the documentation. The following snippet:

var config = &fosite.Config{
	AccessTokenLifespan: time.Minute * 30,
	// ...
}

should be:

var config = &compose.Config{
	AccessTokenLifespan: time.Minute * 30,
	// ...
}

Reproducing the bug

This line here: https://github.com/ory/fosite/blob/c0c0effa1d7f0318a9eb1b37f9aa414889cbd942/README.md?plain=1#L310

Relevant log output

No response

Relevant configuration

No response

Version

v0.42.2

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

MatteoGioioso avatar Aug 04 '22 06:08 MatteoGioioso

Please see the docs for the version of the library you're using. For example for the version you've mentioned: https://github.com/ory/fosite/tree/v0.42.2

Also see the godoc: https://pkg.go.dev/github.com/ory/fosite#section-readme

james-d-elliott avatar Aug 04 '22 08:08 james-d-elliott