import { TokenSet } from "openid-client"; import type { Account, LoggerInstance, Profile } from "../../.."; import type { OAuthConfig } from "../../../providers"; import type { InternalOptions } from "../../types"; import type { RequestInternal, OutgoingResponse } from "../.."; export default function oAuthCallback(params: { options: InternalOptions<"oauth">; query: RequestInternal["query"]; body: RequestInternal["body"]; method: Required["method"]; cookies: RequestInternal["cookies"]; }): Promise; export interface GetProfileParams { profile: Profile; tokens: TokenSet; provider: OAuthConfig; logger: LoggerInstance; } export interface GetProfileResult { profile: ReturnType | null; account: Omit | null; OAuthProfile: Profile; }