Files
klz-cables.com/.pnpm-store/v10/files/19/94970bef3c9fd1b097cb1019cbc42a8ed54324d5b9f40a991ee5ad926fe47652385959c9edb652c42e9e4f823e188c161c3cb96badc6c117223c589451e623
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.1 KiB
Plaintext

{"version":3,"file":"refresh.js","names":["refreshData: RefreshOptions"],"sources":["../../../../src/rest/commands/auth/refresh.ts"],"sourcesContent":["import type { AuthenticationData, RefreshOptions } from '../../../index.js';\nimport type { RestCommand } from '../../types.js';\n\n/**\n * Retrieve a new access token using a refresh token.\n *\n * @param options Optional refresh settings.\n *\n * @returns The new access and refresh tokens for the session.\n */\nexport const refresh =\n\t<Schema>(options: RefreshOptions = {}): RestCommand<AuthenticationData, Schema> =>\n\t() => {\n\t\tconst refreshData: RefreshOptions = {\n\t\t\tmode: options.mode ?? 'cookie',\n\t\t};\n\n\t\tif (refreshData.mode === 'json' && options.refresh_token) {\n\t\t\trefreshData['refresh_token'] = options.refresh_token;\n\t\t}\n\n\t\treturn {\n\t\t\tpath: '/auth/refresh',\n\t\t\tmethod: 'POST',\n\t\t\tbody: JSON.stringify(refreshData),\n\t\t};\n\t};\n"],"mappings":"AAUA,MAAa,GACH,EAA0B,EAAE,OAC/B,CACL,IAAMA,EAA8B,CACnC,KAAM,EAAQ,MAAQ,SACtB,CAMD,OAJI,EAAY,OAAS,QAAU,EAAQ,gBAC1C,EAAY,cAAmB,EAAQ,eAGjC,CACN,KAAM,gBACN,OAAQ,OACR,KAAM,KAAK,UAAU,EAAY,CACjC"}