I want to give the customers the ability to edit their account informations.
I've set up a form in the account template but i couldn't find anywhere an endpoint that allows me to do that..
I could send an admin api request but that would mean writing the api key + password in my liquid files, which looks like a bad idea.. I thought about making my own backend that would consume the api, but even in that case, I need to check if the customer is logged in in my backend so that no customer changes the data of another customer.
Do you guys have any idea on the RIGHT way to do that ?
The customer can update their addresses (edit address form) and password (password reset form) themselves. The only way they can update their email or name is through the API or have someone do it for them in the admin upon request. For API edits, you can either build your own app or pay for one that someone else built.