Skip to content

Commit 2c69fd8

Browse files
authored
fix: quick start secret config (#781)
1 parent d130143 commit 2c69fd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,11 @@ panic("unable to create private key")
315315
// check the api docs of fosite.Config for further configuration options
316316
var config = &fosite.Config{
317317
AccessTokenLifespan: time.Minute * 30,
318+
GlobalSecret: secret,
318319
// ...
319320
}
320321

321-
var oauth2Provider = compose.ComposeAllEnabled(config, storage, secret, privateKey)
322+
var oauth2Provider = compose.ComposeAllEnabled(config, storage, privateKey)
322323

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

0 commit comments

Comments
 (0)