@auth/core
Version:
Authentication for the Web.
14 lines • 837 B
TypeScript
import { InvalidCallbackUrl, InvalidEndpoints, MissingAdapter, MissingAdapterMethods, MissingAuthorize, MissingSecret, UnsupportedStrategy } from "../../errors.js";
import type { RequestInternal } from "../../types.js";
import type { WarningCode } from "../../warnings.js";
import type { AuthConfig } from "../../index.js";
type ConfigError = InvalidCallbackUrl | InvalidEndpoints | MissingAdapter | MissingAdapterMethods | MissingAuthorize | MissingSecret | UnsupportedStrategy;
/**
* Verify that the user configured Auth.js correctly.
* Good place to mention deprecations as well.
*
* This is invoked before the init method, so default values are not available yet.
*/
export declare function assertConfig(request: RequestInternal, options: AuthConfig): ConfigError | WarningCode[];
export {};
//# sourceMappingURL=assert.d.ts.map