UNPKG

@point3/logto-module

Version:

포인트3 내부 logto Authentication 모듈입니다

28 lines (27 loc) 1.06 kB
import { LoggerService } from "@nestjs/common"; import { AxiosResponse } from "axios"; import { OAuthClient, SignInType } from "./oauth-client"; export declare const LogtoLoginSessionToken: unique symbol; export declare class LogtoLoginSession { private readonly apiUrl; private readonly logger; private readonly oauthClient; private readonly apiRestTemplate; constructor(apiUrl: string, logger: LoggerService, oauthClient: OAuthClient); createSignInSession(signInType: SignInType): Promise<{ response: AxiosResponse | undefined; state: string; }>; experienceSignIn(cookie: string): Promise<any>; verificationPassword(cookie: string, dto: { identifier: { type: string; value: string; }; password: string; }): Promise<any>; identify(cookie: string, verificationId: string): Promise<any>; submit(cookie: string): Promise<any>; redirectToConsent(redirectTo: string, cookie: string): Promise<AxiosResponse>; consent(cookie: string): Promise<any>; }