🚩 create user session when provision

create a user session after provisioning authentication if the account has been created previously.
This commit is contained in:
2025-08-12 23:59:06 +07:00
parent 27769773af
commit 6bdd5b6468
6 changed files with 66 additions and 13 deletions

View File

@ -0,0 +1,15 @@
import { Prisma } from "@prisma/client";
import { ErrorForwarder } from "../../../helpers/error/instances/forwarder";
import { userSessionModel } from "../userSession.model";
export const createUserSessionRepository = async (
data: Prisma.UserSessionUncheckedCreateInput
) => {
try {
return await userSessionModel.create({
data,
});
} catch (error) {
ErrorForwarder(error);
}
};