Skip to content

Commit

Permalink
Merge pull request #13 from git-init-priyanshu/nextjs
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
git-init-priyanshu authored Aug 8, 2024
2 parents 428c61a + 4492fd5 commit ffb7cd3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/components/Header/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ export const CreateNewDocument = async (userId: string) => {

export const LogoutAction = async () => {
try {
console.log("here1")
cookies().delete('token');
console.log("here2")
cookies().delete('next-auth.session-token');
console.log("here3")
signOut();
console.log("here4")
// signOut();
console.log("here");

return { success: true, data: null };
} catch (e) {
console.log("here5")
console.error(e);
return { success: false, error: "Internal server error" };
}
Expand Down

0 comments on commit ffb7cd3

Please sign in to comment.