Created
November 28, 2020 15:10
-
-
Save mirsahib/b1dbbf37503ed326c8dec6ab004d68e3 to your computer and use it in GitHub Desktop.
React_Serverless
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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