Skip to content

Commit 598540d

Browse files
authored
fix: Send metadata inviteUserByEmail() (#1061)
FIX send metadata inviteUserByEmail() This fix sends metadata when use inviteUserByEmail()
1 parent da7109f commit 598540d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/gotrue/lib/src/gotrue_admin_api.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ class GoTrueAdminApi {
105105
String? redirectTo,
106106
Map<String, dynamic>? data,
107107
}) async {
108-
final body = {'email': email};
108+
final body = {
109+
'email': email,
110+
if (data != null) 'data': data,
111+
};
109112
final fetchOptions = GotrueRequestOptions(
110113
headers: _headers,
111114
body: body,

0 commit comments

Comments
 (0)