refactor: add nil check for token before accessing AccessToken
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 21s

This commit is contained in:
2025-06-25 12:55:53 -04:00
parent 9f936e9467
commit bdc73d149d

View File

@@ -30,7 +30,7 @@ func getToken(configuration *Configuration) (*Token, error) {
token := FromCache()
if token.AccessToken != "" {
if token != nil && token.AccessToken != "" {
return token, nil
}