🔒️ Rate limit by ip address (#1155)

This commit is contained in:
Luke Vella 2024-06-17 22:13:40 +01:00 committed by GitHub
parent 491af5c71b
commit f7eda38e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 12 deletions

View file

@ -21,7 +21,7 @@ export interface TRPCContextParams {
*/
absoluteUrl: (path?: string) => string;
shortUrl: (path?: string) => string;
ratelimit: (key: string) => Promise<{ success: boolean }>;
ratelimit: () => Promise<{ success: boolean }>;
}
export const createTRPCContext = async (