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
"You can customize each endpoint to fit your needs or disable it by setting it to false. For example you may want to disable the signUp endpoint. "
However, this feature is not yet released and only exists in the main branch. In the current version (v0.10.0), attempting to set an endpoint to false results in a TypeScript error:
Type 'false' has no properties in common with type '{ path?: string | undefined; method?: "options" | "head" | "get" | "patch" | "post" | "put" | "delete" | "connect" | "trace" | undefined; }'.ts(2559)
Additional context
In version 0.10.0, the signUp method in useAuth.ts does not check whether the endpoint is false before attempting to use it.
The TypeScript definition in types.ts does not allow false for signUp
The feature to disable endpoints with false exists in the main branch but has not been included in any released version.
Updating the documentation to clarify that this feature is not available yet would prevent confusion.
Environment
bunx nuxi info
Linux
v20.9.0
3.15.4
3.21.1
2.10.4
[email protected]
ssr, runtimeConfig, compatibilityDate, vite, devtools, modules, auth
@sidebase/[email protected]
Reproduction
@sidebase/[email protected]
in a Nuxt project.signUp
endpoint by setting it tofalse
in the configuration:Describe the bug
The documentation for
sidebase/nuxt-auth
states that endpoints can be disabled by setting them tofalse
:However, this feature is not yet released and only exists in the main branch. In the current version (
v0.10.0
), attempting to set an endpoint tofalse
results in a TypeScript error:Additional context
0.10.0
, thesignUp
method in useAuth.ts does not check whether the endpoint isfalse
before attempting to use it.false
forsignUp
The feature to disable endpoints with
false
exists in themain
branch but has not been included in any released version.Updating the documentation to clarify that this feature is not available yet would prevent confusion.
main: useAuth.ts , types.ts
The text was updated successfully, but these errors were encountered: