diff --git a/google/downscope/example_test.go b/google/downscope/example_test.go index 475efc2..138b9f4 100644 --- a/google/downscope/example_test.go +++ b/google/downscope/example_test.go @@ -31,6 +31,7 @@ func ExampleNewTokenSource() { dts, err := downscope.NewTokenSource(ctx, downscope.DownscopingConfig{RootSource: rootSource, Rules: accessBoundary}) if err != nil { fmt.Printf("failed to generate downscoped token source: %v", err) + return } // Enables automatic token refreshing