diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-01-22 19:19:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 19:19:00 -0500 |
commit | 6cd49ed14f99fe953026e54969abc6232f3aec57 (patch) | |
tree | 86338f1cf1a43e67c93473e3af4a72cd43b1e79c /src/services/UserProfileService.ts | |
parent | 2262d4937d0248e4742f149c7aa4ec79f76c8478 (diff) | |
parent | 765667ff1b72f7ed35d96d4d7dbe90c183e8be11 (diff) |
Merge pull request #197 from IvanIFChen/tma578-fix-forgot-password
[TMA-578] Fix Forgot Password
Diffstat (limited to 'src/services/UserProfileService.ts')
-rw-r--r-- | src/services/UserProfileService.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts index 75d7d367..b400843d 100644 --- a/src/services/UserProfileService.ts +++ b/src/services/UserProfileService.ts @@ -164,12 +164,8 @@ export const loadRecentlySearchedUsers = async () => { export const handlePasswordResetRequest = async (value: string) => { try { - const token = await AsyncStorage.getItem('token'); const response = await fetch(PASSWORD_RESET_ENDPOINT + 'request/', { method: 'POST', - headers: { - Authorization: 'Token ' + token, - }, body: JSON.stringify({ value, }), @@ -204,12 +200,8 @@ export const handlePasswordCodeVerification = async ( otp: string, ) => { try { - const token = await AsyncStorage.getItem('token'); const response = await fetch(PASSWORD_RESET_ENDPOINT + 'verify/', { method: 'POST', - headers: { - Authorization: 'Token ' + token, - }, body: JSON.stringify({ value, otp, @@ -239,12 +231,8 @@ export const handlePasswordCodeVerification = async ( export const handlePasswordReset = async (value: string, password: string) => { try { - const token = await AsyncStorage.getItem('token'); const response = await fetch(PASSWORD_RESET_ENDPOINT + 'reset/', { method: 'POST', - headers: { - Authorization: 'Token ' + token, - }, body: JSON.stringify({ value, password, |