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

195
Views
Can't parse the token along with special characters like (+) we get from URL params in Nodejs

I'm getting automatically generated token along with url like mentioned below:

https://localhost:3000/?token=ebkfJu12VQpfwX3YwAMo7PZoGYJftaMisMcL6VeNSz8IUmaywH64U2k6l8KFCblWXZfPbd9oJSshcwo/6p6cPrMtifFOXfduJbKTeitJqpIwAsq4CpaagGHdZpluUlDSsVlS2KoYQBS/XqxTcSLq+iS4wUWNpKYH8z7w9Vzs7AYPOZEFixSIslP9amBZWtTSIOi/NZkNheYJPRLHun6gHGRZTBAgp8y/6jPvCyjS8HCgqscEqhNponeGoazJAVZuxE1syphiv4EBkjigLIbDl2IoN77shBWwEgojmvmo8UuhV8WhnziXQQrdJU1nirjgCIJ84jxn5d+fjqQC0xfSJQ==

Since this token contains +, hence at the time of parsing const params = new URLSearchParams(tokenString); + is replaced by spaces. How to get the token untouched?

The output I am expecting is

{
  token: 'ebkfJu12VQpfwX3YwAMo7PZoGYJftaMisMcL6VeNSz8IUmaywH64U2k6l8KFCblWXZfPbd9oJSshcwo/6p6cPrMtifFOXfduJbKTeitJqpIwAsq4CpaagGHdZpluUlDSsVlS2KoYQBS/XqxTcSLq+iS4wUWNpKYH8z7w9Vzs7AYPOZEFixSIslP9amBZWtTSIOi/NZkNheYJPRLHun6gHGRZTBAgp8y/6jPvCyjS8HCgqscEqhNponeGoazJAVZuxE1syphiv4EBkjigLIbDl2IoN77shBWwEgojmvmo8UuhV8WhnziXQQrdJU1nirjgCIJ84jxn5d+fjqQC0xfSJQ=='
}
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!