MCPcopy
hub / github.com/cloudfoundry/cli / NewDefaultAuthActor

Function NewDefaultAuthActor

actor/sharedaction/auth.go:7–11  ·  view source on GitHub ↗
(config Config)

Source from the content-addressed store, hash-verified

5}
6
7func NewDefaultAuthActor(config Config) DefaultAuthActor {
8 return DefaultAuthActor{
9 config: config,
10 }
11}
12
13func (a DefaultAuthActor) IsLoggedIn() bool {
14 return a.config.AccessToken() != "" || a.config.RefreshToken() != ""

Callers 1

NewActorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected