@poppinss/oauth-client
Version:
A framework agnostic package to implement "Login with" flow using OAuth compliant authorization servers.
29 lines (28 loc) • 624 B
TypeScript
import type { RedirectRequestContract } from './types.ts';
/**
* Fluent API to constructor a URL with query string
*/
export declare class UrlBuilder implements RedirectRequestContract {
#private;
constructor(baseUrl: string);
/**
* Returns URL params as an object
*/
getParams(): Record<string, any>;
/**
* Define the request param
*/
param(key: string, value: any): this;
/**
* Clear a specific param
*/
clearParam(key: string): this;
/**
* Clear all params
*/
clear(): this;
/**
* Returns the url
*/
makeUrl(): string;
}