aboutsummaryrefslogtreecommitdiff
path: root/src/services/UserProfileService.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-02-01 16:01:03 -0500
committerIvan Chen <ivan@tagg.id>2021-02-01 16:01:03 -0500
commit8d1013e86cf2d66671c337d49a80da157802ad86 (patch)
tree656b1656068bb6636919359d4faaf7051994ff74 /src/services/UserProfileService.ts
parent951d85348acef13ec7830629205c30ad5f766bee (diff)
parent7a09cc96bf1fe468a612bb44362bbef24fccc773 (diff)
Merge branch 'master' into TMA-546-Onboarding-Page
Diffstat (limited to 'src/services/UserProfileService.ts')
-rw-r--r--src/services/UserProfileService.ts12
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,