Files
klz-cables.com/.pnpm-store/v10/files/a8/a99659e33b3486a7536dde67d6dd239fa5635eb6470f1ed5c34e05daa434a1b54c71db30a68622610ed11548da67f4b5128910f08a8f8de863b71151e5314f
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.6 KiB
Plaintext

{"version":3,"file":"login.cjs","names":["getAuthEndpoint","authData: Record<string, string>"],"sources":["../../../../src/rest/commands/auth/login.ts"],"sourcesContent":["import type {\n\tAuthenticationData,\n\tLDAPLoginPayload,\n\tLocalLoginPayload,\n\tLoginOptions,\n\tLoginPayload,\n} from '../../../index.js';\nimport type { RestCommand } from '../../types.js';\nimport { getAuthEndpoint } from '../../utils/get-auth-endpoint.js';\n\n/**\n * Authenticate as a user.\n *\n * @param email Email address of the user.\n * @param password Password of the user.\n * @param options Optional login settings.\n *\n * @returns Authentication data.\n */\nexport function login<Schema>(\n\tpayload: LocalLoginPayload,\n\toptions?: LoginOptions,\n): RestCommand<AuthenticationData, Schema>;\nexport function login<Schema>(\n\tpayload: LDAPLoginPayload,\n\toptions?: LoginOptions,\n): RestCommand<AuthenticationData, Schema>;\nexport function login<Schema>(\n\tpayload: LoginPayload,\n\toptions: LoginOptions = {},\n): RestCommand<AuthenticationData, Schema> {\n\treturn () => {\n\t\tconst path = getAuthEndpoint(options.provider);\n\t\tconst authData: Record<string, string> = payload;\n\t\tif ('otp' in options) authData['otp'] = options.otp;\n\t\tauthData['mode'] = options.mode ?? 'cookie';\n\t\treturn { path, method: 'POST', body: JSON.stringify(authData) };\n\t};\n}\n"],"mappings":"qDA2BA,SAAgB,EACf,EACA,EAAwB,EAAE,CACgB,CAC1C,UAAa,CACZ,IAAM,EAAOA,EAAAA,gBAAgB,EAAQ,SAAS,CACxCC,EAAmC,EAGzC,MAFI,QAAS,IAAS,EAAS,IAAS,EAAQ,KAChD,EAAS,KAAU,EAAQ,MAAQ,SAC5B,CAAE,OAAM,OAAQ,OAAQ,KAAM,KAAK,UAAU,EAAS,CAAE"}