- Marks `loginWithEmailAndPassword` as deprecated and update example

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2024-09-20 15:23:13 +02:00
parent 05624263fb
commit 52c6626531
6 changed files with 15 additions and 16 deletions
+5 -3
View File
@@ -116,9 +116,11 @@ class _HomeScreenState extends State<HomeScreen> {
ElevatedButton(
child: const Text("Sign in"),
onPressed: () async {
await Arcane.auth.loginWithEmailAndPassword(
email: "email",
password: "password",
await Arcane.auth.login<Map<String, String>>(
input: {
"email": "email",
"password": "password",
},
onLoggedIn: () async {
setState(() {});
},