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
- coolify docs dont help installing latest...
coolify has older version of appwrite, how do i install latest version of appwrite
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...
- Console regressions: DateTime and Filter
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour in the console: - Active filters are no longer displayed. The Tabs shows the correct numbe...