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
1 line
799 B
Plaintext
1 line
799 B
Plaintext
{"version":3,"file":"getExistingAuthToken.js","names":["cookies","getCookies","getExistingAuthToken","cookiePrefix","getAll","find","cookie","name","startsWith"],"sources":["../../src/utilities/getExistingAuthToken.ts"],"sourcesContent":["import { cookies as getCookies } from 'next/headers.js'\n\ntype Cookie = {\n name: string\n value: string\n}\nexport async function getExistingAuthToken(cookiePrefix: string): Promise<Cookie | undefined> {\n const cookies = await getCookies()\n return cookies.getAll().find((cookie) => cookie.name.startsWith(cookiePrefix))\n}\n"],"mappings":"AAAA,SAASA,OAAA,IAAWC,UAAU,QAAQ;AAMtC,OAAO,eAAeC,qBAAqBC,YAAoB;EAC7D,MAAMH,OAAA,GAAU,MAAMC,UAAA;EACtB,OAAOD,OAAA,CAAQI,MAAM,GAAGC,IAAI,CAAEC,MAAA,IAAWA,MAAA,CAAOC,IAAI,CAACC,UAAU,CAACL,YAAA;AAClE","ignoreList":[]} |