mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
feat: disable Wishlist
chore: setup commerce & next config fix: replace all call to bigcommerce from aquilacms provider feat add validation to input in signup
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { serialize } from 'cookie'
|
||||
import { getConfig } from '../..'
|
||||
import { LogoutHandlers } from '../logout'
|
||||
|
||||
const logoutHandler: LogoutHandlers['logout'] = async ({
|
||||
@@ -6,6 +7,12 @@ const logoutHandler: LogoutHandlers['logout'] = async ({
|
||||
body: { redirectTo },
|
||||
config,
|
||||
}) => {
|
||||
config = getConfig(config)
|
||||
|
||||
await config.storeApiFetch('/v2/auth/logout', {
|
||||
method: 'GET',
|
||||
})
|
||||
|
||||
// Remove the cookie
|
||||
res.setHeader(
|
||||
'Set-Cookie',
|
||||
|
Reference in New Issue
Block a user