🔒️ Rate limit registration endpoint (#1153)

This commit is contained in:
Luke Vella 2024-06-17 21:42:16 +01:00 committed by GitHub
parent 05d1e56805
commit 491af5c71b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 75 additions and 9 deletions

View file

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