Skip to content

Commit

Permalink
fix: Send metadata inviteUserByEmail() (#1061)
Browse files Browse the repository at this point in the history
FIX send metadata inviteUserByEmail()

This fix sends metadata when use inviteUserByEmail()
  • Loading branch information
daffypiwiit authored Oct 9, 2024
1 parent da7109f commit 598540d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gotrue/lib/src/gotrue_admin_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ class GoTrueAdminApi {
String? redirectTo,
Map<String, dynamic>? data,
}) async {
final body = {'email': email};
final body = {
'email': email,
if (data != null) 'data': data,
};
final fetchOptions = GotrueRequestOptions(
headers: _headers,
body: body,
Expand Down

0 comments on commit 598540d

Please sign in to comment.