fosite
fosite copied to clipboard
Example in documentation mistake
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [ ] This issue affects my Ory Cloud project.
- [ ] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
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
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