dont send name in putAttributes

This commit is contained in:
Abhinav-grd 2021-05-23 20:08:00 +05:30
parent 0f9f9c10d7
commit 29610d3559

View file

@ -52,14 +52,10 @@ export const verifyOtt = (email: string, ott: string) => {
return HTTPService.get(`${ENDPOINT}/users/credentials`, { email, ott });
};
export const putAttributes = (
token: string,
name: string,
keyAttributes: KeyAttributes
) => {
export const putAttributes = (token: string, keyAttributes: KeyAttributes) => {
return HTTPService.put(
`${ENDPOINT}/users/attributes`,
{ name: name ? name : '', keyAttributes: keyAttributes },
{ keyAttributes: keyAttributes },
null,
{
'X-Auth-Token': token,