2026-04-14-8 auth and commercial
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
import { Repository } from 'typeorm';
|
||||
import { ApiKey } from './entities/api-key.entity';
|
||||
import { Tenant } from './entities/tenant.entity';
|
||||
import { RedisService } from '../common/redis.service';
|
||||
export declare class AuthService {
|
||||
private readonly apiKeyRepository;
|
||||
private readonly tenantRepository;
|
||||
private readonly redisService;
|
||||
private readonly logger;
|
||||
constructor(apiKeyRepository: Repository<ApiKey>, tenantRepository: Repository<Tenant>, redisService: RedisService);
|
||||
validateApiKey(key: string, origin?: string, referer?: string): Promise<{
|
||||
tenant: Tenant;
|
||||
apiKey: ApiKey;
|
||||
rateLimit: number;
|
||||
}>;
|
||||
private validateRestrictions;
|
||||
private isDomainAllowed;
|
||||
hashSecret(secret: string): string;
|
||||
seedDefaultKey(name: string, email: string, keyString: string): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user