UNPKG

@hz-9/a5-authn

Version:

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

19 lines (18 loc) 757 B
import { A5AuthnMeResDtoType, A5AuthnRefreshTokenReqDto, A5AuthnRefreshTokenResDtoType } from '../../dtos'; import { A5AuthnUserPayloadBo } from '../../interfaces'; import { A5AuthnJwtService } from './a5-authn-jwt.service'; export declare class A5AuthnJwtController { private readonly service; constructor(service: A5AuthnJwtService); /** * 刷新访问令牌 * 使用刷新令牌获取新的访问令牌 */ refreshToken(body: A5AuthnRefreshTokenReqDto): Promise<A5AuthnRefreshTokenResDtoType>; logout(user: A5AuthnUserPayloadBo): Promise<void>; /** * 获取当前用户信息 * 返回当前登录用户的基本信息 */ getCurrentUser(user: A5AuthnUserPayloadBo): Promise<A5AuthnMeResDtoType>; }