Skip to content

Instantly share code, notes, and snippets.

@spiritbroski
Created September 29, 2020 00:02
Show Gist options
  • Save spiritbroski/c75616d54a89e060dff41cec814ad978 to your computer and use it in GitHub Desktop.
Save spiritbroski/c75616d54a89e060dff41cec814ad978 to your computer and use it in GitHub Desktop.
try {
await props.appwrite.account.create(
email,
password
);
props.setCurrentPage(props.currentPage)
} catch (err) {
setError(err.message)// error message always said the error code like "Unauthorized" for 401,"Too Many Request" for 429 abd so on
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment