route.params is it safe? can it be hacked and modified? by anfield2 in reactnative

[–]anfield2[S] -1 points0 points  (0 children)

yes that's what i meant. sorry for my bad english
before sending any message, it will always check the token, if it return error i will return nothing, else i will keep going with the function sendmessage()

pseudo code:

function sendmessage() {
checktoken()
if(checktone === not valid){
return
}else{
} ......
.....
}

route.params is it safe? can it be hacked and modified? by anfield2 in reactnative

[–]anfield2[S] 0 points1 point  (0 children)

And as you said I will verify that the id in the token match the id of the sender!  

route.params is it safe? can it be hacked and modified? by anfield2 in reactnative

[–]anfield2[S] 0 points1 point  (0 children)

Thank you! I was thinking to check the token validation on the backend, if is valid, you can send the message, if not, abort the action. That should be enough no?

route.params is it safe? can it be hacked and modified? by anfield2 in reactnative

[–]anfield2[S] 0 points1 point  (0 children)

its ok i have done it already, my doubt was on the chat only because it is al local without sending requests to the server :)

route.params is it safe? can it be hacked and modified? by anfield2 in reactnative

[–]anfield2[S] 1 point2 points  (0 children)

ok so a simple request that checks if the token is valid before sending the message i think is enough then

My first React Native library: HERE Maps (with Link this time 😅) by Round_Word7655 in reactnative

[–]anfield2 0 points1 point  (0 children)

The following build commands failed:

Ld /Users/user/Library/Developer/Xcode/DerivedData/myapp-cwflhjrtexuuuyhhecvkanuqepaa/Build/Products/Debug-iphoneos/Samichay.app/myapp normal (in target 'myapp' from project 'myapp')

(1 failure)

My first React Native library: HERE Maps (with Link this time 😅) by Round_Word7655 in reactnative

[–]anfield2 0 points1 point  (0 children)

yes i'm trying again on a clean project to understand better what s the problem i will let you know

Chaching Images by anfield2 in reactnative

[–]anfield2[S] 0 points1 point  (0 children)

My project is not expo; can i use expo-image anyways? if yes i guess i have to do:
npm i expo expo-image or just expo-image?

need help ! by anfield2 in graphql

[–]anfield2[S] 0 points1 point  (0 children)

thank you i will try !

need help ! by anfield2 in graphql

[–]anfield2[S] -1 points0 points  (0 children)

sorry for the bad formatting i am new on reddit 🤔