Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Send metadata inviteUserByEmail() #1061

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

daffypiwiit
Copy link
Contributor

Pull Request Description

This fix sends metadata when using inviteUserByEmail()

What kind of change does this PR introduce?

  • Bug fix

What is the current behavior?

When using the inviteUserByEmail() function, the user_metadata field remains empty, even when data is provided.

Relevant Issue:
Issue #1059

What is the new behavior?

The inviteUserByEmail() function now successfully sends user metadata when provided. The user_metadata field will correctly include the submitted data.

Additional context

This change ensures that any metadata passed during the invitation process is included in the request.

final UserResponse res = await supabase.client.auth.admin.inviteUserByEmail(
  '[email protected]',
  data: {
    'first_name': "test",
    'last_name': "one",
  },
);

This fix sends metadata when use inviteUserByEmail()
@daffypiwiit daffypiwiit changed the title FIX send metadata inviteUserByEmail() fix send metadata inviteUserByEmail() Oct 9, 2024
Copy link
Contributor Author

@daffypiwiit daffypiwiit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit prefix title

@daffypiwiit daffypiwiit changed the title fix send metadata inviteUserByEmail() fix: send metadata inviteUserByEmail() Oct 9, 2024
Copy link
Contributor Author

@daffypiwiit daffypiwiit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix title convention

@Vinzent03 Vinzent03 changed the title fix: send metadata inviteUserByEmail() fix: Send metadata inviteUserByEmail() Oct 9, 2024
Copy link
Collaborator

@Vinzent03 Vinzent03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@Vinzent03 Vinzent03 merged commit 598540d into supabase:main Oct 9, 2024
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants