aboutsummaryrefslogtreecommitdiff
path: root/src/services/UserProfileService.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-01-21 18:13:43 -0500
committerIvan Chen <ivan@tagg.id>2021-01-21 18:13:43 -0500
commit765667ff1b72f7ed35d96d4d7dbe90c183e8be11 (patch)
treeac6b1f7a5a3abbc396c8b7a367a9bbbfd6323b07 /src/services/UserProfileService.ts
parentd1a5193bc1d7117e8c331918ebaac68aa05b29a7 (diff)
updated regex, removed authentication, updated validation
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,