Logo van Hof Cookie Authentication

Hof Cookie Authentication

Organisatie
openreachtech
hof-cookie-authentication

Password sign-in with an in-memory access token and an HttpOnly refresh cookie in a Furo/Nuxt app: the session layer, the auth GraphQL clients, and same-origin serving. Use when adding cookie auth to a Furo app. Boundary: an OIDC or SSO sign-in ends in this session through the frontend OIDC sign-in convention; the base GraphQL client classes stay in the boilerplate; the backend token schema and resolvers are the backend cookie-authentication convention.

Overzicht

Uitgeveropenreachtech
Repositoryhora-skills-ort-furo
Skillnaamhof-cookie-authentication
Sterren
32
Forks
0
Meegeleverde bestanden
8
LicentieApache-2.0
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 8 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door openreachtech op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Hof Cookie Authentication in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cookie-authentication
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-cookie-authentication .claude/skills/hof-cookie-authentication
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Hof Cookie Authentication in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Hof Cookie Authentication automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Hof Cookie Authentication niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Cookie Authentication (Frontend)

Use this skill when adding cookie-based authentication to a Furo/Nuxt app — holding the session, renewing the access token on a 401, guarding routes, signing out, or serving same-origin.

The app keeps a short-lived access token in a Nuxt useState store (never localStorage) and sends it as a header on every request; the refresh token is an HttpOnly cookie the browser sends on its own. When the access token expires the app renews it from the cookie and retries the request once; sign-out revokes the cookie server-side. Every decision lives in a plain, injectable class ([[hoc-jest]]-tested); the composable and middleware are thin Nuxt-context bridges. The refresh cookie is first-party only when the app is served same-origin with the API.

The pattern starts at password sign-in, where the app holds an access token. An OIDC or SSO sign-in reaches the same session: its callback returns the same access token and sets the same refresh cookie, and [[hof-oidc-sign-in]] covers the trip to the provider. A backend that keeps a session cookie and returns no token at all leaves the app nothing to hold, so this skill does not apply to it.

This is application code built on top of the boilerplate's generic BaseAppGraphql* classes ([[hof-graphql]]) — it is not in the boilerplate itself. The boilerplate's base payload also looks for a token in localStorage; this skill writes nothing there, so the token reaches each request only through the session store.

Depends on the backend cookie-authentication skill for the token schema, cookie context, and the signIn / renewAccessToken / signOut resolvers. Binding the server to loopback is a separate server-hardening concern, not part of this skill.

Core

TopicDescriptionReference
Session stateThe useSessionStore Nuxt store and the SessionStoreClerk gate — the in-memory access token, with the store injected into plain classessession-state
RenewSessionRenewer — renew the access token from the cookie, deduplicating concurrent refreshesrenew
Request healingSessionRequestRunner + SessionRequestAuthorizer + useAppGraphqlClient — attach the token, renew and retry on Unauthenticated, revoke on RefreshTokenReusedrequest-healing
Route gatewaySessionGatekeeper + the global gateway middleware — ensure a session on guarded navigationgateway
Sign-outSessionRevoker + the signOut client + the sign-out UI trigger — revoke server-side, then drop the tokensign-out
Auth GraphQL clientsThe signIn / renewAccessToken / signOut Launcher/Payload/Capsule trios on the base classesauth-clients
Error codesapp/constants-error.js plus the capsule isUnauthenticated() / isRefreshTokenReused() checkserror-codes
Same-originRelative .furo-env endpoints, the vite dev proxy, and the production reverse proxy (nginx sample)same-origin

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Hof Cookie Authentication?

Password sign-in with an in-memory access token and an HttpOnly refresh cookie in a Furo/Nuxt app: the session layer, the auth GraphQL clients, and same-origin serving. Use when adding cookie auth to a Furo app. Boundary: an OIDC or SSO sign-in ends in this session through the frontend OIDC sign-in convention; the base GraphQL client classes stay in the boilerplate; the backend token schema and resolvers are the backend cookie-authentication convention.

Waarom Hof Cookie Authentication gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Hof Cookie Authentication bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Hof Cookie Authentication in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cookie-authentication. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Hof Cookie Authentication gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Hof Cookie Authentication gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Hof Cookie Authentication ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Hof Cookie Authentication gratis?

Ja. Deze skill is door openreachtech op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇