(__NEXTAUTH: NextAuthClientConfig)
| 54 | } |
| 55 | |
| 56 | export 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. */ |
| 66 | export function now() { |