MCPcopy Create free account
hub / github.com/dropbox/dbxcli / oauthConfigWithAppKey

Function oauthConfigWithAppKey

cmd/auth.go:116–124  ·  view source on GitHub ↗
(appKey string, domain string)

Source from the content-addressed store, hash-verified

114}
115
116func oauthConfigWithAppKey(appKey string, domain string) *oauth2.Config {
117 endpoint := dropbox.OAuthEndpoint(domain)
118 endpoint.AuthStyle = oauth2.AuthStyleInParams
119
120 return &oauth2.Config{
121 ClientID: appKey,
122 Endpoint: endpoint,
123 }
124}
125
126func (c *storedCredential) UnmarshalJSON(b []byte) error {
127 var accessToken string

Callers 2

oauthConfigFunction · 0.85
refreshStoredCredentialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected