This project is a starting point for a Flutter application with ZITADEL integration.
It uses package:oidc to handle the user management logic.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
- Make sure to create a native application.
- Add the redirects:
- mobile applications with your custom scheme (in our case
com.zitadel.zitadelflutter:/) - web redirect (in our case for local development
http://localhost:3000/auth.html) and make sure to have enabled devMode.
- mobile applications with your custom scheme (in our case
- To get a
refresh_token, check the checkbox for Refresh Token and add theoffline_accessscope.
-
Copy
.env.exampleto.envand set your ZITADEL instance URL and client ID. -
Install dependencies and start the app:
make startIf you want to access more features, and use this app on other platforms (e.g. desktop), Make sure to read the package:oidc wiki