drop notification, reget deps
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
deleteUser,
|
||||
createUserWithPassword,
|
||||
authenticateUser,
|
||||
authenticateWithGoogle,
|
||||
authenticateWithApple,
|
||||
refreshAccessToken,
|
||||
forgotPassword,
|
||||
@@ -39,10 +38,6 @@ const SignupSchema = object({
|
||||
password: string([minLength(8)]),
|
||||
});
|
||||
|
||||
const GoogleAuthSchema = object({
|
||||
idToken: string([minLength(1)]),
|
||||
});
|
||||
|
||||
const AppleAuthSchema = object({
|
||||
identityToken: string([minLength(1)]),
|
||||
authorizationCode: string([minLength(1)]),
|
||||
@@ -75,12 +70,6 @@ export const userRouter = createTRPCRouter({
|
||||
return createUserWithPassword(input.name, input.email, input.password);
|
||||
}),
|
||||
|
||||
googleAuth: publicProcedure
|
||||
.input(wrap(GoogleAuthSchema))
|
||||
.mutation(async ({ input }) => {
|
||||
return authenticateWithGoogle(input.idToken);
|
||||
}),
|
||||
|
||||
appleAuth: publicProcedure
|
||||
.input(wrap(AppleAuthSchema))
|
||||
.mutation(async ({ input }) => {
|
||||
|
||||
Reference in New Issue
Block a user