You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ts-expect-error As our request is not a real next-auth request, we pass down only what's required for the method, as per code from https://github.com/nextauthjs/next-auth/blob/8387c78e3fef13350d8a8c6102caeeb05c70a650/packages/next-auth/src/jwt/index.ts#L68
@@ -28,31 +27,33 @@ import { ERROR_MESSAGES } from '../errors'
28
27
*
29
28
* @param event The H3 Event containing the request
30
29
* @param runtimeConfig Nuxt RuntimeConfig
31
-
* @paramtrustHost Whether the host can be trusted. If `true`, base will be inferred from the request, otherwise the configured origin will be used. * @returns {string} Value formatted for usage with Authjs
30
+
* @paramtrustHostUserPreference Whether the host can be trusted. If `true`, base will be inferred from the request, otherwise the configured origin will be used. * @returns {string} Value formatted for usage with Authjs
32
31
* @throws {Error} When server origin was incorrectly configured or when URL building failed
* Get `origin` and fallback to `x-forwarded-host` or `host` headers if not in production.
43
+
* Get the full base URL including Origin and pathname
44
+
*
45
+
* @param runtimeConfig Nuxt Runtime Config
46
+
* @param includePath Whether function should output just Origin or the full URL
47
+
* @param trustHostUserPreference Whether the host can be trusted. If `true`, base will be inferred from the request, otherwise the configured origin will be used. * @returns {string} Value formatted for usage with Authjs
48
+
* @param isProduction Whether app is running in production mode. In non-production mode function will try to infer the result from the passed event.
49
+
* @param event The H3 Event for inferring the result (optional)
50
+
* @throws {Error} When the calculated result did not include a valid Origin, e.g. it will throw for the result of `/api/auth`, but will succeed for `https://example.com/api/auth`
0 commit comments