next-auth
Version:
Authentication for Next.js
16 lines (15 loc) • 450 B
TypeScript
import { InternalProvider } from "../../lib/types";
import { Provider } from "../../providers";
import { InternalUrl } from "../../lib/parse-url";
/**
* Adds `signinUrl` and `callbackUrl` to each provider
* and deep merge user-defined options.
*/
export default function parseProviders(params: {
providers: Provider[];
url: InternalUrl;
providerId?: string;
}): {
providers: InternalProvider[];
provider?: InternalProvider;
};