@checkfirst/nestjs-outlook
Version:
An opinionated NestJS module for Microsoft Outlook integration that provides easy access to Microsoft Graph API for emails, calendars, and more.
10 lines (9 loc) • 479 B
TypeScript
import { Repository } from 'typeorm';
import { MicrosoftCsrfToken } from '../entities/csrf-token.entity';
export declare class MicrosoftCsrfTokenRepository {
private readonly repository;
constructor(repository: Repository<MicrosoftCsrfToken>);
saveToken(token: string, userId: string | number, expiresInMs: number): Promise<MicrosoftCsrfToken>;
findAndValidateToken(token: string): Promise<MicrosoftCsrfToken | null>;
cleanupExpiredTokens(): Promise<void>;
}