MCPcopy Create free account
hub / github.com/auth0/auth0-cli / apiTypeFor

Function apiTypeFor

internal/cli/apps.go:976–991  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

974}
975
976func apiTypeFor(v string) string {
977 switch strings.ToLower(v) {
978 case "native":
979 return appTypeNative
980 case "spa", "single page web application":
981 return appTypeSPA
982 case "regular", "regular web application":
983 return appTypeRegularWeb
984 case "m2m", "machine to machine":
985 return appTypeNonInteractive
986 case "resource server":
987 return appTypeResourceServer
988 default:
989 return v
990 }
991}
992
993func apiAuthMethodFor(v string) *string {
994 switch strings.ToLower(v) {

Callers 5

createAppCmdFunction · 0.85
updateAppCmdFunction · 0.85
apiDefaultAuthMethodForFunction · 0.85
apiDefaultGrantsForFunction · 0.85
typeForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected