跳到內容

TokenValidator

本頁內容尚未翻譯。

Defined in: Authorization.ts:39

Validate opaque or JWT access tokens without coupling mounts to a validator implementation.

  • Shape<"@graftland/plugin-http/Authorization/TokenValidator", { validate: (token: Redacted<string>) => Effect<{ audience: readonly string[]; issuer: string; scopes: readonly string[]; subject: string; }, | InvalidToken | ValidationUnavailable>; }, this>
new TokenValidator(_: never): TokenValidator;

Defined in: ../../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Context.d.ts:121

Parameter Type
_ never

TokenValidator