edit profil refresh token

This commit is contained in:
2024-07-09 11:28:30 +07:00
parent 1edfbc7149
commit d8dc510742
6 changed files with 56 additions and 15 deletions

View File

@@ -40,4 +40,15 @@ export class LoginService {
return this.http.post(`${url}`, data, { headers });
}
updateUserProfile(data: any): Observable<any> {
const body = { refresh_token: data };
const endpoint = `/users`;
const url = `${BASE_URL}${endpoint}/refresh-token`;
const headers = new HttpHeaders({
"x-api-key": "j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT",
});
return this.http.post(`${url}`, body, { headers });
}
}