Skip to content

Commit

Permalink
fix: quick start secret config
Browse files Browse the repository at this point in the history
  • Loading branch information
n0izn0iz authored and aeneasr committed Dec 27, 2023
1 parent d130143 commit f0d48b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,11 @@ panic("unable to create private key")
// check the api docs of fosite.Config for further configuration options
var config = &fosite.Config{
AccessTokenLifespan: time.Minute * 30,
GlobalSecret: secret,
// ...
}

var oauth2Provider = compose.ComposeAllEnabled(config, storage, secret, privateKey)
var oauth2Provider = compose.ComposeAllEnabled(config, storage, privateKey)

// The authorize endpoint is usually at "https://mydomain.com/oauth2/auth".
func authorizeHandlerFunc(rw http.ResponseWriter, req *http.Request) {
Expand Down

0 comments on commit f0d48b5

Please sign in to comment.