Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
React Native - Authentication - Prevent Token / Cookie being stolen / sniffed? #man in the middl #encrypt data? SSL / HTTPS?

Hey Ladys and Gentlemen,

I'm planing on creating my first React Native (mobile) application and can not find a secure and easy solution for the authentication.

So lets assume I make a horse-racing app and at the horse-racing-track (the place where the horses run) the Users can choose a horse to bet on by reading an qr-code with the horse-id.

Then the mobile app sends that data along with a JWT or Session-Cookie to my api.

So the Question: How can I make sure, that someone is not sniffing / stealing that Session-Cookie or Token? Couldn't I just sit in front of the horse-track with my laptop and grab some tokens and do stuff via my API with that?!

Possible Solutions:(?) Encrypting the data from App to API with the UserData (email or pw) ? Might SSL / HTTPS be a solution (encryption)?

I actually wanted to use PassportJS and JWT together in combination to build a auth-server that creates Device/Refresstokens + an Accesstoken.

-> Disclaimer: Horse-Racing is nothing I support in any kind. It's not cool what they do to the horses there..

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!