@inertiapixel/nextjs-auth
Version:
Authentication system for Next.js. Supports credentials and social login, JWT token management, and lifecycle hooks — designed to integrate with nodejs-auth for full-stack MERN apps.
27 lines (26 loc) • 622 B
JavaScript
export {};
/*
export const OAUTH_PROVIDERS: Record<OAuthProvider, OAuthProviderConfig> = {
google: {
authEndpoint: 'https://accounts.google.com/o/oauth2/v2/auth',
clientId: 'clientId',
scope: 'openid email profile',
extras: {
access_type: 'offline',
prompt: 'consent',
},
},
facebook: {
authEndpoint: 'https://www.facebook.com/v10.0/dialog/oauth',
clientId: '2',
scope: 'email public_profile',
// no extras
},
github: {
authEndpoint: 'https://github.com/login/oauth/authorize',
clientId: '3',
scope: 'read:user user:email',
// no extras
},
};
*/