edit profil refresh token
This commit is contained in:
1 parent
1edfbc7149
commit
d8dc510742
6 files changed
+56
-15
No files matched your search
@@ -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