UNPKG

@atproto/oauth-client-browser

Version:

ATPROTO OAuth client for the browser (relies on WebCrypto & Indexed DB)

18 lines 528 B
export type Simplify<T> = { [K in keyof T]: T[K]; } & NonNullable<unknown>; export type TupleUnion<U extends string, R extends any[] = []> = { [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>; }[U]; /** * @example * ```ts * const clientId = buildLoopbackClientId(window.location) * ``` */ export declare function buildLoopbackClientId(location: { hostname: string; pathname: string; port: string; }, localhost?: string): string; //# sourceMappingURL=util.d.ts.map