Function createSessionService
- createSessionService(userId: string): Promise<Document<any, BeAnObject, Session> & Session & IObjectWithTypegooseFunction & {
_id: ObjectId;
}>
-
Returns Promise<Document<any, BeAnObject, Session> & Session & IObjectWithTypegooseFunction & {
_id: ObjectId;
}>
Create a new session for given user
Author
aayushchugh