UNPKG

@denz93/vendure-plugin-3rd-party-auth

Version:

A set of auth strategies to work with 3rd party such as Google, Facebook, etc

13 lines (12 loc) 531 B
import { AuthenticationStrategy, Injector, RequestContext, User } from "@vendure/core"; import { DocumentNode } from "graphql"; import { GoogleAuthData } from "./interfaces"; export declare class GoogleAuthStrategy implements AuthenticationStrategy { name: string; private googleService; private externalAuthService; private crossStrategyChecker; defineInputType(): DocumentNode; authenticate(ctx: RequestContext, data: GoogleAuthData): Promise<string | false | User>; init(injector: Injector): void; }