Example in documentation mistake
MatteoGioioso opened this issue · comments
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- 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:
Line 310 in c0c0eff
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