UNPKG

universal_authentication

Version:

Seamless and Secure Authentication for Modern Web Applications: Easily integrate OTP-based email verification, Google OAuth, GitHub, Microsoft, and Okta login into your Node.js app. Modular, flexible, and database-agnostic, this package simplifies user au

9 lines (8 loc) 259 B
//interface to follow the behaviour of an object export interface IOAuthConfig { clientId: string; clientSecret: string; redirectUri: string; createUser: (userData: any) => Promise<any>; findUserById: (providerId: string) => Promise<any>; }