Vue
useSignUpEmailPassword()
API Documentation
Backend Services
- Authentication
- Storage
GraphQL
- AI
Client Libraries
- JavaScript
- React
- Next.js
- Vue
- NhostClient
- useAccessToken()
- useAuthenticated()
- useAuthenticationStatus()
- useChangeEmail()
- useChangePassword()
- useDecodedAccessToken()
- useFileUpload()
- useFileUploadItem()
- useHasuraClaim()
- useHasuraClaims()
- useMultipleFilesUpload()
- useNhostClient()
- useProviderLink()
- useResetPassword()
- useSendVerificationEmail()
- useSignInAnonymous()
- useSignInEmailPassword()
- useSignInEmailPasswordless()
- useSignInPAT()
- useSignInSmsPasswordless()
- useSignOut()
- useSignUpEmailPassword()
- useUserAvatarUrl()
- useUserData()
- useUserDefaultRole()
- useUserDisplayName()
- useUserEmail()
- useUserId()
- useUserIsAnonymous()
- useUserLocale()
- useUserRoles()
- useAddSecurityKey()
- useElevateSecurityKeyEmail()
- useSignInEmailSecurityKey()
- useSignUpEmailSecurityKey()
- React Native
Vue
useSignUpEmailPassword()
Use the composable useSignUpEmailPassword
to sign up a user using email and password.
const {
signUpEmailPassword,
needsEmailVerification,
isLoading,
isSuccess,
isError,
error
} = useSignUpEmailPassword()
watchEffect(() => {
console.log(
needsEmailVerification.value,
isLoading.value,
isSuccess.value,
isError.value,
error.value
)
})
const handleFormSubmit = async (e) => {
e.preventDefault()
await signUpEmailPassword('joe@example.com', 'secret-password')
}
Parameters
options optional NestedRefOfValue<undefined | SignUpOptions>
On this page