Skip to content

Instantly share code, notes, and snippets.

@mirsahib
Created November 28, 2020 15:10
Show Gist options
  • Save mirsahib/b1dbbf37503ed326c8dec6ab004d68e3 to your computer and use it in GitHub Desktop.
Save mirsahib/b1dbbf37503ed326c8dec6ab004d68e3 to your computer and use it in GitHub Desktop.
React_Serverless
import { clearCookie } from "../helpers/jwt-helper";
export async function handler() {
return {
statusCode: 200,
headers: {
"Set-Cookie": clearCookie(),
"Content-Type": "application/json",
},
body: JSON.stringify({ message: "Logged out successfully" }),
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment