@auth0/nextjs-auth0
Version:
Auth0 Next.js SDK
16 lines (15 loc) • 1.02 kB
TypeScript
import type { AuthorizationParameters } from "../types/index.js";
/**
* Merges two instances of authorization parameters into a URLSearchParams object,
* excluding any parameters specified in the excludedParams array.
* If the scope is provided as a map of audience to scopes, it selects the appropriate scope
* based on the audience parameter.
* @param leftParams The base authorization parameters
* @param rightParams The authorization parameters to merge, overriding leftParams
* @param excludedParams Array of parameter names to exclude from the resulting URLSearchParams
* @returns URLSearchParams containing the merged authorization parameters
*
* @remarks The scope properties override each other, no merging is done.
* @throws {InvalidConfigurationError} If scope is defined as a map but no audience is provided.
*/
export declare function mergeAuthorizationParamsIntoSearchParams(leftParams: AuthorizationParameters, rightParams?: AuthorizationParameters, excludedParams?: string[]): URLSearchParams;