nestjs-oauth2
Version:
NestJS OAuth2 Client
12 lines (11 loc) • 627 B
TypeScript
import { Response } from "express";
import { StateService } from "../state/state.service";
import { OAuthService } from "./oauth.service";
export declare class OAuthController {
private readonly oauthService;
private readonly stateService;
constructor(oauthService: OAuthService, stateService: StateService);
oauthStart(provider: string, res: Response): Promise<void>;
oauthCallback(provider: string, code: string, state: string): Promise<import("./oauth.interfaces").OAuthTokenResponse>;
oauthRefresh(provider: string, refreshToken: string): Promise<import("./oauth.interfaces").OAuthTokenResponse>;
}