[{"data":1,"prerenderedAt":998,"buildId":999},["ShallowReactive",2],{"docs-navigation-en":3,"examples-en":50,"page-\u002Fdocs\u002Fverify-user":237,"surround-\u002Fdocs\u002Fverify-user":993},[4],{"title":5,"path":6,"stem":7,"children":8,"page":49},"Docs","\u002Fdocs","docs",[9,13,17,21,25,29,33,37,41,45],{"title":10,"path":11,"stem":12},"Getting started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started",{"title":14,"path":15,"stem":16},"verifyUser","\u002Fdocs\u002Fverify-user","docs\u002F02.verify-user",{"title":18,"path":19,"stem":20},"Sites without users","\u002Fdocs\u002Fsites-without-users","docs\u002F03.sites-without-users",{"title":22,"path":23,"stem":24},"Build-time route check","\u002Fdocs\u002Froute-coverage","docs\u002F04.route-coverage",{"title":26,"path":27,"stem":28},"Public routes","\u002Fdocs\u002Fpublic-routes","docs\u002F05.public-routes",{"title":30,"path":31,"stem":32},"Same-origin writes","\u002Fdocs\u002Fsame-origin","docs\u002F06.same-origin",{"title":34,"path":35,"stem":36},"Scope and caching","\u002Fdocs\u002Fscope","docs\u002F07.scope",{"title":38,"path":39,"stem":40},"Configuration","\u002Fdocs\u002Fconfiguration","docs\u002F08.configuration",{"title":42,"path":43,"stem":44},"Migrating an existing BFF guard","\u002Fdocs\u002Fmigration","docs\u002F09.migration",{"title":46,"path":47,"stem":48},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F10.contributing",false,[51,61,69,77,83,90,98,106,113,122,131,138,146,153,159,166,174,180,188,194,202,208,215,221,229],{"path":52,"title":53,"description":54,"category":55,"order":56,"uses":57},"\u002Fexamples\u002Fcontact-form","Contact form on a corporate site","A mail-sending route that only your own pages can call, with a bot check and a rate limit.","visitor",1,[58,59,60],"access: 'visitor'","@nuxtjs\u002Fturnstile","nuxt-security",{"path":62,"title":63,"description":64,"category":55,"order":65,"uses":66},"\u002Fexamples\u002Fpaid-api-proxy","Search box that calls a paid API","Keep other sites and scripts from spending your API quota through your BFF.",2,[58,67,68],"rateLimiter","defineCachedFunction",{"path":70,"title":71,"description":72,"category":55,"order":73,"uses":74},"\u002Fexamples\u002Fclient-data","JSON for client-side pages","Data that your pages fetch in the browser, kept from being embedded by other sites.",3,[58,75,76],"access: 'public'","useFetch",{"path":78,"title":79,"description":80,"category":55,"order":81,"uses":82},"\u002Fexamples\u002Fmember-site-contact","Visitor routes inside a member app","Keep 'user' as the default and open a few routes to visitors without accounts.",4,[58,14],{"path":84,"title":85,"description":86,"category":87,"order":56,"uses":88},"\u002Fexamples\u002Fnuxt-auth-utils","nuxt-auth-utils","Use the sealed Cookie session of nuxt-auth-utils as the user check.","auth",[85,89],"requireUserSession",{"path":91,"title":92,"description":93,"category":87,"order":65,"uses":94},"\u002Fexamples\u002Fsidebase-nuxt-auth","Auth.js with @sidebase\u002Fnuxt-auth","Check the Auth.js session, and accept the same JWT as a Bearer token.",[95,96,97],"@sidebase\u002Fnuxt-auth","getServerSession","getToken",{"path":99,"title":100,"description":101,"category":87,"order":73,"uses":102},"\u002Fexamples\u002Fsupabase","Supabase","Verify the Supabase session with getClaims, and tell bad tokens from outages.",[103,104,105],"@nuxtjs\u002Fsupabase","getClaims","isAuthRetryableFetchError",{"path":107,"title":108,"description":109,"category":87,"order":81,"uses":110},"\u002Fexamples\u002Fclerk","Clerk","Read the auth object that Clerk's middleware put on the event.",[111,112],"@clerk\u002Fnuxt","event.context.auth",{"path":114,"title":115,"description":116,"category":87,"order":117,"uses":118},"\u002Fexamples\u002Ffirebase","Firebase Authentication","Session Cookies for the browser, ID tokens for apps, and error codes mapped to 401 or 503.",5,[119,120,121],"firebase-admin","verifySessionCookie","verifyIdToken",{"path":123,"title":124,"description":125,"category":87,"order":126,"uses":127},"\u002Fexamples\u002Fjwt-jose","Any OpenID Connect provider (JWT)","Verify access tokens from Auth0, Keycloak, Cognito, Entra ID and others with jose.",6,[128,129,130],"jose","jwtVerify","createRemoteJWKSet",{"path":132,"title":133,"description":134,"category":135,"order":56,"uses":136},"\u002Fexamples\u002Fnuxt-security-rate-limit","Rate limits with nuxt-security","Slow down credential stuffing and token guessing before verifyUser runs.","security",[60,67,137],"routeRules",{"path":139,"title":140,"description":141,"category":135,"order":65,"uses":142},"\u002Fexamples\u002Fnuxt-security-headers","Headers, CSP and request limits with nuxt-security","A baseline nuxt-security setup next to the guard, tuned for a BFF.",[60,143,144,145],"headers","requestSizeLimiter","allowedMethodsRestricter",{"path":147,"title":148,"description":149,"category":135,"order":73,"uses":150},"\u002Fexamples\u002Fnuxt-csurf","CSRF tokens with nuxt-csurf","Add a synchronizer token on top of the origin check, without breaking Bearer clients.",[151,152,137],"nuxt-csurf","useCsrfFetch",{"path":154,"title":155,"description":156,"category":135,"order":81,"uses":157},"\u002Fexamples\u002Fturnstile","Bot checks on public routes with Turnstile","Public sign-in and sign-up routes skip verifyUser, so give them their own check.",[59,158],"verifyTurnstileToken",{"path":160,"title":161,"description":162,"category":135,"order":117,"uses":163},"\u002Fexamples\u002Fcors-bearer-clients","A frontend on another origin","CORS with nuxt-security for a separate app that calls the BFF with Bearer tokens.",[60,164,165],"corsHandler","viaBearer",{"path":167,"title":168,"description":169,"category":170,"order":56,"uses":171},"\u002Fexamples\u002Frecord-authorization","Per-record authorization","The guard says who the user is. The handler decides what they may touch.","patterns",[172,173],"event.context","createError",{"path":175,"title":176,"description":177,"category":170,"order":65,"uses":178},"\u002Fexamples\u002Froles","Roles and app-wide access","Reject whole groups of users in verifyUser, and check roles per route.",[14,179],"403",{"path":181,"title":182,"description":183,"category":170,"order":73,"uses":184},"\u002Fexamples\u002Fupstream-proxy","Calling an upstream API","Attach the user's token after the guard, never in middleware or routeRules.proxy.",[185,186,187],"$fetch","routeRules.proxy","server\u002Futils",{"path":189,"title":190,"description":191,"category":170,"order":81,"uses":192},"\u002Fexamples\u002Fssr-and-server-functions","SSR and server functions","Call your own API during server rendering, or skip HTTP entirely.",[76,193,187],"useRequestFetch",{"path":195,"title":196,"description":197,"category":170,"order":117,"uses":198},"\u002Fexamples\u002Fwebhooks","Webhooks","Server-to-server callbacks belong outside server\u002Fapi, with their own signature check.",[199,200,201],"server\u002Froutes","readRawBody","xssValidator",{"path":203,"title":204,"description":205,"category":170,"order":126,"uses":206},"\u002Fexamples\u002Fbearer-clients","Mobile apps and CLI tools","One BFF for the browser and for clients that send Bearer tokens.",[165,207],"Authorization",{"path":209,"title":210,"description":211,"category":170,"order":212,"uses":213},"\u002Fexamples\u002Fmore-route-folders","Checking more folders at build time","Extend routePatterns to server\u002Froutes and layers.",7,[214],"routePatterns",{"path":216,"title":217,"description":218,"category":170,"order":219,"uses":220},"\u002Fexamples\u002Fpublic-cache","Caching public data","Cache what is the same for everyone on a separate public route.",8,[68,75],{"path":222,"title":223,"description":224,"category":170,"order":225,"uses":226},"\u002Fexamples\u002Fclient-errors","Handling 401, 403 and 503 in the app","Sign out on 401, explain 403, retry on 503.",9,[227,228],"$fetch.create","onResponseError",{"path":230,"title":231,"description":232,"category":170,"order":233,"uses":234},"\u002Fexamples\u002Ftesting","Testing the protection","An end-to-end test that every protected route refuses anonymous calls.",10,[235,236],"@nuxt\u002Ftest-utils","vitest",{"id":238,"title":14,"body":239,"description":988,"extension":989,"meta":990,"navigation":498,"path":15,"seo":991,"stem":16,"__hash__":992},"docs_en\u002Fdocs\u002F02.verify-user.md",{"type":240,"value":241,"toc":982},"minimark",[242,249,328,333,347,355,362,366,369,425,432,738,742,750,794,850,853,945,949,978],[243,244,245,248],"p",{},[246,247,14],"code",{}," is a server file with a default export. The guard calls it for every protected request, before your handler.",[250,251,256],"pre",{"className":252,"code":253,"language":254,"meta":255,"style":255},"language-ts shiki shiki-themes material-theme-lighter github-light github-dark","type VerifyUser = (event: H3Event) => { viaBearer: boolean } | Promise\u003C{ viaBearer: boolean }>\n","ts","",[246,257,258],{"__ignoreMap":255},[259,260,262,266,270,274,278,282,285,288,291,294,297,301,303,307,310,313,316,319,321,323,325],"span",{"class":261,"line":56},"line",[259,263,265],{"class":264},"sbsja","type",[259,267,269],{"class":268},"sbgvK"," VerifyUser",[259,271,273],{"class":272},"smGrS"," =",[259,275,277],{"class":276},"sP7_E"," (",[259,279,281],{"class":280},"s99_P","event",[259,283,284],{"class":272},":",[259,286,287],{"class":268}," H3Event",[259,289,290],{"class":276},")",[259,292,293],{"class":264}," =>",[259,295,296],{"class":276}," {",[259,298,300],{"class":299},"sucvu"," viaBearer",[259,302,284],{"class":272},[259,304,306],{"class":305},"sZMiF"," boolean",[259,308,309],{"class":276}," }",[259,311,312],{"class":272}," |",[259,314,315],{"class":268}," Promise",[259,317,318],{"class":276},"\u003C{",[259,320,300],{"class":299},[259,322,284],{"class":272},[259,324,306],{"class":305},[259,326,327],{"class":276}," }>\n",[329,330,332],"h2",{"id":331},"return-value","Return value",[243,334,335,336,339,340,342,343,346],{},"Return ",[246,337,338],{},"{ viaBearer: true }"," only when you actually verified the user's own Bearer token from the ",[246,341,207],{}," header. Return ",[246,344,345],{},"{ viaBearer: false }"," for Cookie sessions.",[243,348,349,350,354],{},"A verified Bearer request skips the ",[351,352,353],"a",{"href":31},"same-origin check",", because another site cannot make a browser attach your token. A Cookie is attached automatically, so Cookie-based writes are always checked.",[243,356,357,358,361],{},"Any other return value, for example ",[246,359,360],{},"undefined",", is treated as a failed check.",[329,363,365],{"id":364},"failures","Failures",[243,367,368],{},"How you fail decides the status code. The guard hides the error details from the client.",[370,371,372,387],"table",{},[373,374,375],"thead",{},[376,377,378,384],"tr",{},[379,380,381,383],"th",{},[246,382,14],{}," throws",[379,385,386],{},"The guard answers",[388,389,390,402,414],"tbody",{},[376,391,392,400],{},[393,394,395,396,399],"td",{},"an error with ",[246,397,398],{},"statusCode: 403"," (a known user who may not use the app)",[393,401,179],{},[376,403,404,411],{},[393,405,406,407,410],{},"an error with a 4xx ",[246,408,409],{},"statusCode",", such as 401 (missing, invalid or expired credentials)",[393,412,413],{},"401",[376,415,416,422],{},[393,417,418,419,421],{},"an error without ",[246,420,409],{},", or with a 5xx one (the auth backend is down)",[393,423,424],{},"503",[243,426,427,428,431],{},"Throw ",[246,429,430],{},"createError({ statusCode: 401 })"," for bad credentials, and let infrastructure errors through. If you turn an outage into a 401, a client that signs out on 401 will sign out every user whenever your auth provider has a bad minute.",[250,433,436],{"className":252,"code":434,"filename":435,"language":254,"meta":255,"style":255},"import { createError, getCookie } from 'h3'\nimport type { VerifyUser } from '@kurashina-design\u002Fnuxt-bff-guard'\n\nexport default (async (event) => {\n  const token = getCookie(event, 'session')\n  if (!token) throw createError({ statusCode: 401 })\n\n  const session = await sessions.find(token) \u002F\u002F a network error here becomes 503\n  if (!session) throw createError({ statusCode: 401 })\n  if (session.user.suspended) throw createError({ statusCode: 403 })\n\n  return { viaBearer: false }\n}) satisfies VerifyUser\n","server\u002Fauth\u002Fverify-user.ts",[246,437,438,472,494,500,524,557,596,600,631,661,700,705,724],{"__ignoreMap":255},[259,439,440,444,446,450,453,456,458,461,465,469],{"class":261,"line":56},[259,441,443],{"class":442},"sVHd0","import",[259,445,296],{"class":276},[259,447,449],{"class":448},"su5hD"," createError",[259,451,452],{"class":276},",",[259,454,455],{"class":448}," getCookie",[259,457,309],{"class":276},[259,459,460],{"class":442}," from",[259,462,464],{"class":463},"sjJ54"," '",[259,466,468],{"class":467},"s_sjI","h3",[259,470,471],{"class":463},"'\n",[259,473,474,476,479,481,483,485,487,489,492],{"class":261,"line":65},[259,475,443],{"class":442},[259,477,478],{"class":442}," type",[259,480,296],{"class":276},[259,482,269],{"class":448},[259,484,309],{"class":276},[259,486,460],{"class":442},[259,488,464],{"class":463},[259,490,491],{"class":467},"@kurashina-design\u002Fnuxt-bff-guard",[259,493,471],{"class":463},[259,495,496],{"class":261,"line":73},[259,497,499],{"emptyLinePlaceholder":498},true,"\n",[259,501,502,505,508,510,513,515,517,519,521],{"class":261,"line":81},[259,503,504],{"class":442},"export",[259,506,507],{"class":442}," default",[259,509,277],{"class":448},[259,511,512],{"class":264},"async",[259,514,277],{"class":276},[259,516,281],{"class":280},[259,518,290],{"class":276},[259,520,293],{"class":264},[259,522,523],{"class":276}," {\n",[259,525,526,529,533,535,538,542,544,546,548,551,554],{"class":261,"line":117},[259,527,528],{"class":264},"  const",[259,530,532],{"class":531},"s_hVV"," token",[259,534,273],{"class":272},[259,536,455],{"class":537},"sGLFI",[259,539,541],{"class":540},"skxfh","(",[259,543,281],{"class":448},[259,545,452],{"class":276},[259,547,464],{"class":463},[259,549,550],{"class":467},"session",[259,552,553],{"class":463},"'",[259,555,556],{"class":540},")\n",[259,558,559,562,564,567,570,573,576,578,580,583,586,588,592,594],{"class":261,"line":126},[259,560,561],{"class":442},"  if",[259,563,277],{"class":540},[259,565,566],{"class":272},"!",[259,568,569],{"class":448},"token",[259,571,572],{"class":540},") ",[259,574,575],{"class":442},"throw",[259,577,449],{"class":537},[259,579,541],{"class":540},[259,581,582],{"class":276},"{",[259,584,585],{"class":540}," statusCode",[259,587,284],{"class":276},[259,589,591],{"class":590},"srdBf"," 401",[259,593,309],{"class":276},[259,595,556],{"class":540},[259,597,598],{"class":261,"line":212},[259,599,499],{"emptyLinePlaceholder":498},[259,601,602,604,607,609,612,615,618,621,623,625,627],{"class":261,"line":219},[259,603,528],{"class":264},[259,605,606],{"class":531}," session",[259,608,273],{"class":272},[259,610,611],{"class":442}," await",[259,613,614],{"class":448}," sessions",[259,616,617],{"class":276},".",[259,619,620],{"class":537},"find",[259,622,541],{"class":540},[259,624,569],{"class":448},[259,626,572],{"class":540},[259,628,630],{"class":629},"sutJx","\u002F\u002F a network error here becomes 503\n",[259,632,633,635,637,639,641,643,645,647,649,651,653,655,657,659],{"class":261,"line":225},[259,634,561],{"class":442},[259,636,277],{"class":540},[259,638,566],{"class":272},[259,640,550],{"class":448},[259,642,572],{"class":540},[259,644,575],{"class":442},[259,646,449],{"class":537},[259,648,541],{"class":540},[259,650,582],{"class":276},[259,652,585],{"class":540},[259,654,284],{"class":276},[259,656,591],{"class":590},[259,658,309],{"class":276},[259,660,556],{"class":540},[259,662,663,665,667,669,671,674,676,679,681,683,685,687,689,691,693,696,698],{"class":261,"line":233},[259,664,561],{"class":442},[259,666,277],{"class":540},[259,668,550],{"class":448},[259,670,617],{"class":276},[259,672,673],{"class":448},"user",[259,675,617],{"class":276},[259,677,678],{"class":448},"suspended",[259,680,572],{"class":540},[259,682,575],{"class":442},[259,684,449],{"class":537},[259,686,541],{"class":540},[259,688,582],{"class":276},[259,690,585],{"class":540},[259,692,284],{"class":276},[259,694,695],{"class":590}," 403",[259,697,309],{"class":276},[259,699,556],{"class":540},[259,701,703],{"class":261,"line":702},11,[259,704,499],{"emptyLinePlaceholder":498},[259,706,708,711,713,715,717,721],{"class":261,"line":707},12,[259,709,710],{"class":442},"  return",[259,712,296],{"class":276},[259,714,300],{"class":540},[259,716,284],{"class":276},[259,718,720],{"class":719},"syTEX"," false",[259,722,723],{"class":276}," }\n",[259,725,727,730,732,735],{"class":261,"line":726},13,[259,728,729],{"class":276},"}",[259,731,572],{"class":448},[259,733,734],{"class":442},"satisfies",[259,736,737],{"class":268}," VerifyUser\n",[329,739,741],{"id":740},"storing-the-user-for-the-handler","Storing the user for the handler",[243,743,744,746,747,749],{},[246,745,14],{}," may put what it learned on ",[246,748,172],{},", so handlers do not verify twice.",[250,751,753],{"className":252,"code":752,"language":254,"meta":255,"style":255},"event.context.user = session.user\nreturn { viaBearer: false }\n",[246,754,755,779],{"__ignoreMap":255},[259,756,757,759,761,764,766,769,772,774,776],{"class":261,"line":56},[259,758,281],{"class":448},[259,760,617],{"class":276},[259,762,763],{"class":448},"context",[259,765,617],{"class":276},[259,767,768],{"class":448},"user ",[259,770,771],{"class":272},"=",[259,773,606],{"class":448},[259,775,617],{"class":276},[259,777,778],{"class":448},"user\n",[259,780,781,784,786,788,790,792],{"class":261,"line":65},[259,782,783],{"class":442},"return",[259,785,296],{"class":276},[259,787,300],{"class":540},[259,789,284],{"class":276},[259,791,720],{"class":719},[259,793,723],{"class":276},[250,795,798],{"className":252,"code":796,"filename":797,"language":254,"meta":255,"style":255},"import { defineBffHandler } from '#bff-guard'\n\nexport default defineBffHandler(event => event.context.user)\n","server\u002Fapi\u002Fme.get.ts",[246,799,800,820,824],{"__ignoreMap":255},[259,801,802,804,806,809,811,813,815,818],{"class":261,"line":56},[259,803,443],{"class":442},[259,805,296],{"class":276},[259,807,808],{"class":448}," defineBffHandler",[259,810,309],{"class":276},[259,812,460],{"class":442},[259,814,464],{"class":463},[259,816,817],{"class":467},"#bff-guard",[259,819,471],{"class":463},[259,821,822],{"class":261,"line":65},[259,823,499],{"emptyLinePlaceholder":498},[259,825,826,828,830,832,834,836,838,841,843,845,847],{"class":261,"line":73},[259,827,504],{"class":442},[259,829,507],{"class":442},[259,831,808],{"class":537},[259,833,541],{"class":448},[259,835,281],{"class":280},[259,837,293],{"class":264},[259,839,840],{"class":448}," event",[259,842,617],{"class":276},[259,844,763],{"class":448},[259,846,617],{"class":276},[259,848,849],{"class":448},"user)\n",[243,851,852],{},"Type it once with a declaration file:",[250,854,857],{"className":252,"code":855,"filename":856,"language":254,"meta":255,"style":255},"declare module 'h3' {\n  interface H3EventContext {\n    user?: { id: string, role: 'member' | 'admin' }\n  }\n}\nexport {}\n","server\u002Ftypes\u002Fcontext.d.ts",[246,858,859,875,885,928,933,938],{"__ignoreMap":255},[259,860,861,864,867,869,871,873],{"class":261,"line":56},[259,862,863],{"class":264},"declare",[259,865,866],{"class":264}," module",[259,868,464],{"class":463},[259,870,468],{"class":467},[259,872,553],{"class":463},[259,874,523],{"class":276},[259,876,877,880,883],{"class":261,"line":65},[259,878,879],{"class":264},"  interface",[259,881,882],{"class":268}," H3EventContext",[259,884,523],{"class":276},[259,886,887,890,893,895,898,900,903,905,908,910,912,915,917,919,921,924,926],{"class":261,"line":73},[259,888,889],{"class":299},"    user",[259,891,892],{"class":272},"?:",[259,894,296],{"class":276},[259,896,897],{"class":299}," id",[259,899,284],{"class":272},[259,901,902],{"class":305}," string",[259,904,452],{"class":276},[259,906,907],{"class":299}," role",[259,909,284],{"class":272},[259,911,464],{"class":463},[259,913,914],{"class":467},"member",[259,916,553],{"class":463},[259,918,312],{"class":272},[259,920,464],{"class":463},[259,922,923],{"class":467},"admin",[259,925,553],{"class":463},[259,927,723],{"class":276},[259,929,930],{"class":261,"line":81},[259,931,932],{"class":276},"  }\n",[259,934,935],{"class":261,"line":117},[259,936,937],{"class":276},"}\n",[259,939,940,942],{"class":261,"line":126},[259,941,504],{"class":442},[259,943,944],{"class":276}," {}\n",[329,946,948],{"id":947},"what-belongs-elsewhere","What belongs elsewhere",[950,951,952,963,969],"ul",{},[953,954,955,959,960,962],"li",{},[956,957,958],"strong",{},"App-wide access"," (is this user allowed to use the app at all?) belongs in ",[246,961,14],{}," as a 403.",[953,964,965,968],{},[956,966,967],{},"Per-record access"," (may this user read order 42?) belongs in the handler.",[953,970,971,974,975,977],{},[956,972,973],{},"Development",": without ",[246,976,14],{},", protected routes answer 401. In production the build and the server refuse to start without it.",[979,980,981],"style",{},"html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s99_P, html code.shiki .s99_P{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit}html pre.shiki code .sucvu, html code.shiki .sucvu{--shiki-light:#E53935;--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sVHd0, html code.shiki .sVHd0{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_hVV, html code.shiki .s_hVV{--shiki-light:#90A4AE;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sGLFI, html code.shiki .sGLFI{--shiki-light:#6182B8;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .skxfh, html code.shiki .skxfh{--shiki-light:#E53935;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}html pre.shiki code .syTEX, html code.shiki .syTEX{--shiki-light:#FF5370;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":255,"searchDepth":65,"depth":65,"links":983},[984,985,986,987],{"id":331,"depth":65,"text":332},{"id":364,"depth":65,"text":365},{"id":740,"depth":65,"text":741},{"id":947,"depth":65,"text":948},"The one function that connects the guard to your authentication.","md",{},{"title":14,"description":988},"vUaLgSmQQ9QtQDd0anwDPDZZuAZ7g97oi8HWRwPHDf0",[994,996],{"title":10,"path":11,"stem":12,"description":995,"children":-1},"Install the module, connect your existing auth, and wrap your first route.",{"title":18,"path":19,"stem":20,"description":997,"children":-1},"Protect the BFF of a corporate site, a landing page or any app without sign-in.",1796451485226,"a99f93bd-e267-45a7-90df-9194cd77468d"]