UNPKG

keystone-6-oauth

Version:

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

11 lines (10 loc) 409 B
import type { BaseItem, KeystoneListsAPI } from '@keystone-6/core/types'; import { NextAuthErrorCode } from '../types'; export declare function validateNextAuth(identityField: string, identity: string | number, allowAccountLinks: boolean, listQueryAPI: KeystoneListsAPI<any>[string]): Promise<{ success: false; item?: any; code: NextAuthErrorCode; } | { success: true; item: BaseItem; }>;