authentication implementation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = await readBody(event);
|
||||
const token = getCookie(event, 'token')
|
||||
|
||||
|
||||
setCookie(event, 'token', '', {
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
maxAge: new Date(0),
|
||||
path: '/'
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user