getAPIKeyCacheKey generates a cache key for an API key lookup Uses the hashed key to ensure consistent cache keys
(hashedKey string)
| 45 | // getAPIKeyCacheKey generates a cache key for an API key lookup |
| 46 | // Uses the hashed key to ensure consistent cache keys |
| 47 | func getAPIKeyCacheKey(hashedKey string) string { |
| 48 | return fmt.Sprintf("api_key:hash:%s", hashedKey) |
| 49 | } |
| 50 | |
| 51 | // CreateAPIKey creates a new API key with the specified parameters and stores it in the database. |
| 52 | // The key is hashed using bcrypt before storage for security. The plain text key is returned ONLY during creation |
no outgoing calls
no test coverage detected