authhandler: Make authHandler the last parameter

This commit is contained in:
Andy Zhao
2021-03-17 12:29:45 -07:00
parent 8a926e1234
commit ab12fee4d1
3 changed files with 8 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ func ExampleCmdAuthorizationHandler() {
}
state := "unique_state"
token, err := authhandler.TokenSource(ctx, conf, authhandler.CmdAuthorizationHandler(state), state).Token()
token, err := authhandler.TokenSource(ctx, conf, state, authhandler.CmdAuthorizationHandler(state)).Token()
if err != nil {
fmt.Println(err)