> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ko/llms.txt # MastraJwtAuth 클래스 그만큼`MastraJwtAuth`클래스는 JWT(JSON 웹 토큰)를 사용하여 Mastra에 대한 경량 인증 메커니즘을 제공합니다. 공유 비밀을 기반으로 들어오는 요청을 확인하고 다음을 사용하여 Mastra 서버와 통합합니다.`auth`옵션. ## 사용예 ```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 웹 토큰](https://mastra.zisheng.pro/ko/docs/server/auth/jwt)