summaryrefslogtreecommitdiff
path: root/api/auth
diff options
context:
space:
mode:
Diffstat (limited to 'api/auth')
-rw-r--r--api/auth/registration.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/api/auth/registration.ts b/api/auth/registration.ts
index 9f1c377..912e5bf 100644
--- a/api/auth/registration.ts
+++ b/api/auth/registration.ts
@@ -96,17 +96,6 @@ async function handleGet(request: VercelRequest): Promise<(r: VercelResponse) =>
return (response) => void (response.status(200).json(options));
}
-function getFirstQueryParam(key: string, query: VercelRequest['query']): string | null {
- const value = query[key];
- if (!value) {
- return null;
- }
- if (typeof(value) === 'string') {
- return value;
- }
- return value[0] as string;
-}
-
async function handlePost(request: VercelRequest): Promise<(r: VercelResponse) => void> {
type Body = {
userId: string,