forked from remote/oauth2
Removed some code that's not yet finished
This commit is contained in:
@@ -12,10 +12,6 @@ import (
|
|||||||
"golang.org/x/oauth2/google/downscope"
|
"golang.org/x/oauth2/google/downscope"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Example() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func ExampleNewTokenSource() {
|
func ExampleNewTokenSource() {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
// Initializes an accessBoundary with one Rule.
|
// Initializes an accessBoundary with one Rule.
|
||||||
@@ -38,7 +34,7 @@ func ExampleNewTokenSource() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Enables automatic token refreshing
|
// Enables automatic token refreshing
|
||||||
_ := oauth2.ReuseTokenSource(nil, dts)
|
_ = oauth2.ReuseTokenSource(nil, dts)
|
||||||
|
|
||||||
// You can now use the token held in myTokenSource to make
|
// You can now use the token held in myTokenSource to make
|
||||||
// Google Cloud Storage calls, as follows:
|
// Google Cloud Storage calls, as follows:
|
||||||
|
|||||||
Reference in New Issue
Block a user