nest-authify
Version:
Complete authentication and authorization package for NestJS - Monolith and Microservices ready with OAuth, JWT, Redis sessions
11 lines (10 loc) • 522 B
TypeScript
export interface IAuthService {
validateUser(username: string, password: string): Promise<any>;
validateOAuthUser?(provider: string, providerId: string, profile: any): Promise<any>;
getUserById(userId: string): Promise<any>;
verifyToken(token: string): Promise<any>;
refreshAccessToken(refreshToken: string): Promise<any>;
validateOAuthUser?(profile: any, provider: string): Promise<any>;
getUserById(userId: string): Promise<any>;
createSession?(user: any, options?: any): Promise<any>;
}