> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ja/llms.txt # MastraJwtAuth クラス `MastraJwtAuth` クラスは、JSON Web Token(JWT)を使用した軽量な認証メカニズムを Mastra に提供します。共有シークレットに基づいて受信リクエストを検証し、`auth` オプションを使用して Mastra サーバーと統合します。 ## 使用例 ```typescript import { Mastra } from '@mastra/core' import { MastraJwtAuth } from '@mastra/auth' export const mastra = new Mastra({ server: { auth: new MastraJwtAuth({ secret: '', }), }, }) ``` ## コンストラクターのパラメーター **secret** (`string`): 受信リクエストの認証に使用する JSON Web Token(JWT)の署名と検証に使われる一意の文字列。 ## 関連情報 - [JSON Web Token](https://mastra.zisheng.pro/ja/docs/server/auth/jwt)