UNPKG

@hz-9/a5-authn

Version:

Authentication module for the @hz-9/a5-* series of repositories.

20 lines (19 loc) 457 B
export interface A5AuthnJwtStrategyConstructorOptions { /** * JWT 密钥 */ secret: string; /** * JWT 过期时间 * @default '1d' */ expiresIn?: string; /** * 从请求中提取 JWT 的位置 * @default 'header' * * TODO 当前仅支持 ‘Authorization’ Bearer */ jwtFromRequest?: 'auth'; } export type A5AuthnJwtStrategyOptions = Required<A5AuthnJwtStrategyConstructorOptions>;