(id: string)
| 1 | import { prisma } from '@linen/database'; |
| 2 | |
| 3 | export const getSsoSession = async (id: string) => { |
| 4 | return await prisma.session.delete({ |
| 5 | where: { id }, |
| 6 | select: { sessionToken: true }, |
| 7 | }); |
| 8 | }; |
| 9 | |
| 10 | export const createSsoSession = async ( |
| 11 | userId: string, |