UNPKG

@mercury-labs/auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

11 lines (10 loc) 347 B
import { IJwtTokenResponse } from '../services'; import { IAuthUserEntityForResponse } from './auth-user'; export interface IAuthResponse { user: IAuthUserEntityForResponse; token: IJwtTokenResponse; } export interface IRefreshTokenAuthResponse { user: IAuthUserEntityForResponse; token: Omit<IJwtTokenResponse, 'refreshToken'>; }