(id: string)
| 66 | }); |
| 67 | } |
| 68 | static async getUserById(id: string) { |
| 69 | return await prisma.auths.findUnique({ |
| 70 | where: { id }, |
| 71 | select: { email: true, id: true, users: true }, |
| 72 | }); |
| 73 | } |
| 74 | static async authorize(email: string, password: string) { |
| 75 | if (!email || !password) { |
| 76 | return null; |