homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
43 lines (42 loc) • 1.82 kB
TypeScript
import type { FastifyReply, FastifyRequest } from 'fastify';
import { JwtService } from '@nestjs/jwt';
import { PluginsSettingsUiTicketService } from '../../modules/custom-plugins/plugins-settings-ui/plugins-settings-ui-ticket.service.js';
import { PluginsService } from '../../modules/plugins/plugins.service.js';
import { ConfigService } from '../config/config.service.js';
import { Logger } from '../logger/logger.service.js';
import { AuthDto, RefreshTokenDto } from './auth.dto.js';
import { AuthService } from './auth.service.js';
export declare class AuthController {
private readonly authService;
private readonly configService;
private readonly pluginsService;
private readonly pluginUiTicketService;
private readonly logger;
private readonly jwtService;
constructor(authService: AuthService, configService: ConfigService, pluginsService: PluginsService, pluginUiTicketService: PluginsSettingsUiTicketService, logger: Logger, jwtService: JwtService);
signIn(body: AuthDto, req: FastifyRequest, res: FastifyReply): Promise<any>;
getSettings(req: any): any;
getCustomWallpaper(): import("node:fs").ReadStream;
getToken(req: FastifyRequest, res: FastifyReply): Promise<{
access_token: string;
token_type: string;
expires_in: number;
}>;
checkAuth(): {
status: string;
};
refreshToken(req: any, body: RefreshTokenDto, res: FastifyReply): Promise<any>;
restoreSession(req: any, res: FastifyReply): Promise<any>;
logout(req: FastifyRequest & {
user?: {
username: string;
};
}, res: FastifyReply): {
status: string;
};
private readRefreshCookie;
private readLogoutUsername;
private setRefreshCookie;
private buildRefreshCookie;
private buildClearedCookies;
}