From 0071c81699e43916d198c052adefb53d33cd122c Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 24 May 2020 22:12:18 +0200 Subject: [PATCH] all auth provider should work via `/auth/` Signed-off-by: Philip Molares --- src/api/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/user.ts b/src/api/user.ts index f1f2fa77c..d77536f78 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -5,7 +5,7 @@ export const getMe = async () => { } export const postEmailLogin = async (email: string, password: string) => { - const response = await fetch(getBackendUrl() + "/login", { + const response = await fetch(getBackendUrl() + "/auth/email", { method: 'POST', mode: 'cors', cache: 'no-cache',