feat: added route to log users out

This commit is contained in:
Balu Babu
2023-01-19 04:34:35 +05:30
parent c63bc28ca0
commit 813db4a985
2 changed files with 0 additions and 6 deletions

View File

@@ -2,7 +2,6 @@ import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
import * as O from 'fp-ts/Option';
import { AuthUser, SSOProviderProfile } from 'src/types/AuthUser';
import { checkNullability } from 'src/utils';
@Injectable()
export class UserService {

View File

@@ -160,8 +160,3 @@ export const authCookieHandler = (
res.status(HttpStatus.OK).redirect('http://localhost:3170/graphql');
} else res.status(HttpStatus.OK).send();
};
export const checkNullability = (data: string | undefined | null) => {
if (!data) return null;
return data;
};