-
-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Describe the bug
Possible security vulnerability
When sending a signUp api call to an already existing user with attached meta-data, the user's existing meta-data is overwritten in an unauthenticated context.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Find a user that exists and has existing meta-data in your supabase project
- Issue another signUp api request for that same user's email with new meta-data
- observer the meta-data on the API response
const { user, session, error } = await supabase.auth.signUp({
email: email,
password: password,
},{
data:{
phone: phone,
name: name,
company: company
}
})
Expected behavior
- If a user is already signed up, the metadata should not be updated
- Nice to have: If a user is already signed up the API should respond with something like HTTP status code 409 instead of User object.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working