Skip to content

Commit

Permalink
add config setter object for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
duytiennguyen-okta committed Mar 30, 2023
1 parent 056faf9 commit 4ac61b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .generator/templates/configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ func WithCacheTti(i int32) ConfigSetter {
}
}

func WithHttpClientPtr(httpClient *http.Client) ConfigSetter {
return func(c *Configuration) {
c.HTTPClient = httpClient
}
}

func WithConnectionTimeout(i int64) ConfigSetter {
return func(c *Configuration) {
c.Okta.Client.ConnectionTimeout = i
Expand Down

0 comments on commit 4ac61b8

Please sign in to comment.