跳轉到主要內容

型別別名:BearerAuthJwtConfig (Type Alias: BearerAuthJwtConfig)

type BearerAuthJwtConfig = {
  jwtVerify?: JWTVerifyOptions;
  remoteJwkSet?: RemoteJWKSetOptions;
};

使用 JWT 驗證時,Bearer 驗證 (Bearer auth) 處理器的設定。

屬性 (Properties)​

jwtVerify?​

optional jwtVerify: JWTVerifyOptions;

傳遞給 jose 函式庫 jwtVerify 函式的選項。

參見 (See)​

JWTVerifyOptions,該選項的型別定義。


remoteJwkSet?​

optional remoteJwkSet: RemoteJWKSetOptions;

傳遞給 jose 函式庫 createRemoteJWKSet 函式的選項。

參見 (See)​

RemoteJWKSetOptions,該選項的型別定義。