Files
klz-cables.com/.pnpm-store/v10/files/b6/6ce45d7390c1b5fb4decd228fcaaf2cee2fc1fbb8b14ec42f8af7aa6bee1b28202999f8d8e64f05bfcb8d9c199a39b4a3f64884d52a281b8d58b1419bca2fd
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

1 line
1.0 KiB
Plaintext

{"version":3,"file":"logout.js","names":["logoutData: LogoutOptions"],"sources":["../../../../src/rest/commands/auth/logout.ts"],"sourcesContent":["import type { LogoutOptions } from '../../../index.js';\nimport type { RestCommand } from '../../types.js';\n\n/**\n * Invalidate the refresh token thus destroying the user's session.\n *\n * @param options Optional logout settings.\n *\n * @returns Empty body.\n */\nexport const logout =\n\t<Schema>(options: LogoutOptions = {}): RestCommand<void, Schema> =>\n\t() => {\n\t\tconst logoutData: LogoutOptions = {\n\t\t\tmode: options.mode ?? 'cookie',\n\t\t};\n\n\t\tif (logoutData.mode === 'json' && options.refresh_token) {\n\t\t\tlogoutData['refresh_token'] = options.refresh_token;\n\t\t}\n\n\t\treturn {\n\t\t\tpath: '/auth/logout',\n\t\t\tmethod: 'POST',\n\t\t\tbody: JSON.stringify(logoutData),\n\t\t};\n\t};\n"],"mappings":"AAUA,MAAa,GACH,EAAyB,EAAE,OAC9B,CACL,IAAMA,EAA4B,CACjC,KAAM,EAAQ,MAAQ,SACtB,CAMD,OAJI,EAAW,OAAS,QAAU,EAAQ,gBACzC,EAAW,cAAmB,EAAQ,eAGhC,CACN,KAAM,eACN,OAAQ,OACR,KAAM,KAAK,UAAU,EAAW,CAChC"}