Type to search…

JWT

JSON Web Token (JWT) és un estàndard obert per l'intercanvi de testimonis d'autenticació (tokens) en arquitectures client-servidor.

Introducció

Auth Middleware

El Middleware d’Autenticació JWT proporciona autenticació verificant el token amb JWT. El middleware comprovarà si hi ha una capçalera Authorization si l’opció cookie no està configurada. Pots personalitzar el nom de la capçalera utilitzant l’opció headerName.

ts
Import
import { Hono } from 'hono'
import { jwt } from 'hono/jwt'
import type { JwtVariables } from 'hono/jwt'

TODO

You're reading a preview.

Sign in with Google to read the full page. A Google account includes 5 free pages in total; students and teachers read their course pages without limit.

Sign in