UNPKG

keystone-6-oauth

Version:

Keystone6 Plugin that enables social logins such as Google, Twitter, Github, Facebook and others.

12 lines (11 loc) 707 B
import { BaseListTypeInfo, KeystoneConfig } from '@keystone-6/core/types'; import { AuthConfig, KeystoneOAuthConfig } from './types'; /** * createAuth function * * Generates config for Keystone to implement standard auth features. */ export type { NextAuthProviders, KeystoneOAuthConfig, KeystoneOAuthCallbacks, KeystoneOAuthOnSignIn, KeystoneOAuthOnSignUp } from './types'; export declare function createAuth<GeneratedListTypes extends BaseListTypeInfo>({ autoCreate, context, cookies, identityField, listKey, keystonePath, onSignIn, onSignUp, pages, providers, sessionData, sessionSecret, }: AuthConfig<GeneratedListTypes>): { withAuth: (keystoneConfig: KeystoneConfig) => KeystoneOAuthConfig; };