MCPcopy Create free account
hub / github.com/Scalingo/cli / ScalingoAuthClientFromToken

Function ScalingoAuthClientFromToken

config/config.go:193–198  ·  view source on GitHub ↗
(ctx context.Context, token string)

Source from the content-addressed store, hash-verified

191}
192
193func ScalingoAuthClientFromToken(ctx context.Context, token string) (*scalingo.Client, error) {
194 config := C.scalingoClientBaseConfig(ClientConfigOpts{
195 AuthOnly: true, APIToken: token,
196 })
197 return scalingo.New(ctx, config)
198}
199
200func ScalingoAuthClient(ctx context.Context) (*scalingo.Client, error) {
201 auth := &CliAuthenticator{}

Callers 4

finalizeLoginFunction · 0.92
tryAuthFunction · 0.85
ScalingoAuthClientFunction · 0.85
EnsureRegionsCacheFunction · 0.85

Calls 1

Tested by

no test coverage detected