Skip to content

Commit

Permalink
handle this error to demonstrate the new intended usage of this function
Browse files Browse the repository at this point in the history
Co-authored-by: Kynan Ware <[email protected]>
  • Loading branch information
mouismail and BagToad authored Oct 7, 2024
1 parent 3ded353 commit 7e4a31f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (
// self-hosted GitHub instances as well.
func ExampleFlow_DetectFlow() {
host, err := oauth.NewGitHubHost("https://github.com")
if err != nil {
panic(err)
}
flow := &oauth.Flow{
Host: host,
ClientID: os.Getenv("OAUTH_CLIENT_ID"),
Expand Down

0 comments on commit 7e4a31f

Please sign in to comment.