MCPcopy
hub / github.com/openai/openai-go / TokenCredentialOption

FuncType TokenCredentialOption

azure/azure.go:100–100  ·  view source on GitHub ↗

TokenCredentialOption is the type for any options that can be used to customize [WithTokenCredential], including things like using custom scopes.

func(*tokenCredentialConfig) error

Source from the content-addressed store, hash-verified

98// TokenCredentialOption is the type for any options that can be used to customize
99// [WithTokenCredential], including things like using custom scopes.
100type TokenCredentialOption func(*tokenCredentialConfig) error
101
102// WithTokenCredentialScopes overrides the default scope used when requesting access tokens.
103func WithTokenCredentialScopes(scopes []string) func(*tokenCredentialConfig) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…