next-auth
Version:
Authentication for Next.js
20 lines • 653 B
TypeScript
import type { InternalOptions } from "../../types";
import type { RequestInternal } from "../..";
import type { Cookie } from "../cookie";
/**
*
* Generates an authorization/request token URL.
*
* [OAuth 2](https://www.oauth.com/oauth2-servers/authorization/the-authorization-request/) | [OAuth 1](https://oauth.net/core/1.0a/#auth_step2)
*/
export default function getAuthorizationUrl({ options, query, }: {
options: InternalOptions<"oauth">;
query: RequestInternal["query"];
}): Promise<{
redirect: string;
cookies?: undefined;
} | {
redirect: string;
cookies: Cookie[];
}>;
//# sourceMappingURL=authorization-url.d.ts.map