I read the official docs of appwrite, watched videos and read articles so I could be able to implement AppWrite authentication, but I wasn't able to. All efforts were not giving desired outcome for creating user account. I've been on this for days and it's slowing my project down, cause there's need to implement authentication.
I'll be glad if someone can help be sending a beginner friendly analysis of the code functionality and the implementation in a sign up and login ui so I can be able to follow suite.
sooo where are exactly are you stuck? what was the last thing you tried?
I initialized account and client and then pass in my project id and the url provided in the gitpod instance, I made sure it was running at that moment
then I passed a function that creates account to a TextField button for trigger, it didn't
I then did it manually by removing the function and placing it somewhere else but I made sure I called it and same thing
did you see any network call execute? flutter has a network logger in the dev tools that's helpful for logging network requests
did any error occur?
I didn't check
I just checked my appwrite dashboard to watch our if account was created
any error in your app? maybe the request wasn't even being sent
I didn't get app error
nothing in the logs client side?
What's your code?
which logs do you meant on flutter monitor or appwrite dashboard?
Besides my laptop is off currently Expecting power supply
flutter
I just did according to the documentation for Flutter email account creation
I didn't check there
But the app on my device didn't throw error either
please share the next time you're working on your app
No challenge, I will @Steven
I'm super grateful. I'm hoping to support appwrite when am able soon
I did this lately @Steven
this looks good so far (assuming endpoint and project are correct and your endpoint is a valid HTTPS or just HTTP)
I created a file for endpoint and id
I expected user account to be created, but non was
because that doesn't actually create the account ๐
ok, seems I left something behind
// this creates an Account service that you can use to make API calls
Account account = Account(client);
to create an account, you use the account service and call create:
final user = await account.create(
userId: ID.unique(),
email: 'me@appwrite.io',
password: 'password',
name: 'My Name'
);
I did create account service here
Recommended threads
- 1:1 relationship doesnโt sync after re-a...
Hi, Iโm trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...