Skip to content

Commit

Permalink
chore: warn about disabled signUp endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
root5427 authored Dec 23, 2024
1 parent 8410502 commit 2385706
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/composables/local/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Check failure on line 9 in src/runtime/composables/local/useAuth.ts

View workflow job for this annotation

GitHub Actions / test-module

`../../utils/logger` import should occur before import of `./utils/token`
import { type UseAuthStateReturn, useAuthState } from './useAuthState'
import { callWithNuxt } from '#app/nuxt'
// @ts-expect-error - #auth not defined
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 2385706

Please sign in to comment.