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

Function apiBaseUrl

src/client/_utils.ts:56–63  ·  view source on GitHub ↗
(__NEXTAUTH: NextAuthClientConfig)

Source from the content-addressed store, hash-verified

54}
55
56export function apiBaseUrl(__NEXTAUTH: NextAuthClientConfig) {
57 if (typeof window === "undefined") {
58 // Return absolute path when called server side
59 return `${__NEXTAUTH.baseUrlServer}${__NEXTAUTH.basePathServer}`
60 }
61 // Return relative path when called client side
62 return __NEXTAUTH.basePath
63}
64
65/** Returns the number of seconds elapsed since January 1, 1970 00:00:00 UTC. */
66export function now() {

Callers 3

signInFunction · 0.90
signOutFunction · 0.90
fetchDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…