edit profil refresh token
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user