UNPKG

@hz-9/a5-authn

Version:

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

15 lines 881 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A5AuthnRefreshTokenResDto = exports.A5AuthnRefreshTokenResDtoSchema = void 0; /* eslint-disable @rushstack/typedef-var */ const a5_crud_zod_1 = require("@hz-9/a5-crud-zod"); exports.A5AuthnRefreshTokenResDtoSchema = a5_crud_zod_1.z.object({ accessToken: a5_crud_zod_1.z.string().describe('新的访问令牌'), refreshToken: a5_crud_zod_1.z.string().describe('新的刷新令牌'), tokenType: a5_crud_zod_1.z.literal('Bearer').describe('令牌类型'), expiresIn: a5_crud_zod_1.z.number().int().nonnegative().describe('过期时间(秒)'), }); class A5AuthnRefreshTokenResDto extends (0, a5_crud_zod_1.createZodResDto)(exports.A5AuthnRefreshTokenResDtoSchema) { } exports.A5AuthnRefreshTokenResDto = A5AuthnRefreshTokenResDto; //# sourceMappingURL=refresh-token.res.dto.js.map