MCPcopy
hub / github.com/nextauthjs/next-auth / InternalUrl

Interface InternalUrl

src/lib/parse-url.ts:1–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface InternalUrl {
2 /** @default "http://localhost:3000" */
3 origin: string
4 /** @default "localhost:3000" */
5 host: string
6 /** @default "/api/auth" */
7 path: string
8 /** @default "http://localhost:3000/api/auth" */
9 base: string
10 /** @default "http://localhost:3000/api/auth" */
11 toString: () => string
12}
13
14/** Returns an `URL` like object to make requests/redirects from server-side */
15export default function parseUrl(url?: string): InternalUrl {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…