fix(auth/csvauth): load tokens into hashmap so that they can be retrieved by CredentialKeys

This commit is contained in:
AJ ONeal 2026-03-03 01:20:26 -07:00
parent d415a8c743
commit 249385c775
No known key found for this signature in database

View File

@ -44,9 +44,8 @@ func (a *Auth) CacheCredential(c Credential) error {
a.credentials[name] = c a.credentials[name] = c
if c.Purpose == PurposeToken { if c.Purpose == PurposeToken {
a.tokens[c.hashID] = c a.tokens[c.hashID] = c
} else {
a.hashedCredentials[nameID] = c
} }
a.hashedCredentials[nameID] = c
return nil return nil
} }