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

Function setOAuthCredentials

cmd/root.go:137–146  ·  view source on GitHub ↗
(tokenType string, appKey string)

Source from the content-addressed store, hash-verified

135}
136
137func setOAuthCredentials(tokenType string, appKey string) {
138 switch tokenType {
139 case tokenPersonal:
140 personalAppKey = appKey
141 case tokenTeamAccess:
142 teamAccessAppKey = appKey
143 case tokenTeamManage:
144 teamManageAppKey = appKey
145 }
146}
147
148func needsOAuthCredentialsOverride(tokenType string) bool {
149 return oauthCredentials(tokenType) == ""

Calls

no outgoing calls