give users more control over how PKCE challenge codes are generated

This commit is contained in:
thomas-welch 2021-09-14 15:57:43 +01:00
parent a63fbee93d
commit 50d331577c
2 changed files with 29 additions and 7 deletions

View file

@ -43,7 +43,7 @@ func main() {
state := func() string {
return uuid.New().String()
}
token := cli.CodeFlow(relyingParty, callbackPath, port, state)
token := cli.CodeFlow(ctx, relyingParty, callbackPath, port, state)
client := github.NewClient(relyingParty.OAuthConfig().Client(ctx, token.Token))