Member-only story
100% HUMAN WRITTEN
Flutter. Anonymous login with Appwrite
Why and how
“Anonymous login” looks like a kind of nonsense. If there is a login, some credentials should be provided; if the user is anonymous (guest), there is no login.
So, what are we talking about?
The best onboarding flow for most apps (excluding banking, ecommerce, social, etc.) is to let users use the app anonymously without forcing them to log in.
And only when the user wants to save some data does the app offer them to create an account.
So, the story is about how to implement this workflow in a Flutter application using Appwrite as a backend.
Why Appwrite? Self-hosted Appwrite is my long-standing choice for the Flutter (or any) backend. It is lightweight (can be self-hosted on a cheap VPS), fast, and has Functions in Dart. Relationships and transactions are recently out of beta and ready for production.
Appwrite Getting Started
Appwrite self-hosting
The “anonymous login” workflow is not logically simple (at least for me 😎).
Here is the enum representing the possible account statuses:
enum AccountStatus {
none…










