(ctx context.Context, rawKey string)
| 154 | } |
| 155 | |
| 156 | func (s *ClientAPIKeyStore) ValidateKey(ctx context.Context, rawKey string) (*ClientAPIKey, error) { |
| 157 | keyHash := HashAPIKey(rawKey) |
| 158 | return s.GetByKeyHash(ctx, keyHash) |
| 159 | } |
| 160 | |
| 161 | func (s *ClientAPIKeyStore) UpdateLastUsed(ctx context.Context, keyHash string) error { |
| 162 | tx, err := s.db.BeginTx(ctx, nil) |
no test coverage detected