UNPKG

next-auth

Version:

Authentication for Next.js

17 lines (16 loc) 568 B
import { InternalOptions } from "../../lib/types"; interface CreateCallbackUrlParams { options: InternalOptions; /** Try reading value from request body (POST) then from query param (GET) */ paramValue?: string; cookieValue?: string; } /** * Get callback URL based on query param / cookie + validation, * and add it to `req.options.callbackUrl`. */ export declare function createCallbackUrl({ options, paramValue, cookieValue, }: CreateCallbackUrlParams): Promise<{ callbackUrl: string; callbackUrlCookie: string | undefined; }>; export {};