From 23857066be70e9ae7c6604b0ad098f9d5e1e7946 Mon Sep 17 00:00:00 2001 From: Devix Rootix Date: Tue, 24 Dec 2024 04:47:14 +0500 Subject: [PATCH] chore: warn about disabled `signUp` endpoint --- src/runtime/composables/local/useAuth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/composables/local/useAuth.ts b/src/runtime/composables/local/useAuth.ts index b1e1f43b..0cb13a04 100644 --- a/src/runtime/composables/local/useAuth.ts +++ b/src/runtime/composables/local/useAuth.ts @@ -6,6 +6,7 @@ import { _fetch } from '../../utils/fetch' import { determineCallbackUrl } from '../../utils/url' import { getRequestURLWN } from '../common/getRequestURL' import { formatToken } from './utils/token' +import { ERROR_PREFIX } from '../../utils/logger' import { type UseAuthStateReturn, useAuthState } from './useAuthState' import { callWithNuxt } from '#app/nuxt' // @ts-expect-error - #auth not defined @@ -169,6 +170,7 @@ async function signUp(credentials: Credentials, signInOptions?: SecondarySignInO const signUpEndpoint = config.endpoints.signUp if (!signUpEndpoint) { + console.warn(`${ERROR_PREFIX} provider.endpoints.signUp is disabled.`) return }