diff --git a/internal/sso/login.go b/internal/sso/login.go index 0b8b353..bb705cf 100644 --- a/internal/sso/login.go +++ b/internal/sso/login.go @@ -110,7 +110,7 @@ func (p *Login) GetCredentials(ctx context.Context) (*aws.Credentials, error) { credstore := securestorage.NewSecureSSOTokenStorage() cachedToken := credstore.GetValidSSOToken(ssoTokenKey) - if cachedToken == nil { + if p.NoCache || cachedToken == nil { newSSOToken, err := awsprofile.SSODeviceCodeFlowFromStartUrl(ctx, cfg, startURL, profile.Name, p.Url) if err != nil { return &aws.Credentials{}, err