UNPKG

@symanticreative/vendure-admin-client

Version:

A TypeScript GraphQL client for Vendure Admin API to create custom dashboards

26 lines (25 loc) 839 B
import { GraphQLClientService } from '../core/graphql/graphql-client.service'; import { AuthCredentials, AuthResponse, CurrentUser } from '../models/auth.model'; /** * Repository for authentication operations */ export declare class AuthRepository { private graphqlClient; constructor(graphqlClient: GraphQLClientService); /** * Login to the Vendure Admin API * @param credentials - Authentication credentials * @returns Promise resolving to auth response */ login(credentials: AuthCredentials): Promise<AuthResponse>; /** * Logout from the Vendure Admin API * @returns Promise resolving to void */ logout(): Promise<void>; /** * Get the current authenticated user * @returns Promise resolving to current user */ getCurrentUser(): Promise<CurrentUser>; }