feat: added route to log users out
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user