ory / fosite

Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=fosite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example in documentation mistake

MatteoGioioso opened this issue · 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:

var config = &fosite.Config{

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