Replies: 1 comment
-
As you pointed out, you cannot treat this large value as a
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am encountering an issue while trying to retrieve the Google ID using
Router.useSearch()
with TanStack Router. After Google authentication via Passport.js, I am passing the email and Google ID using the following redirect:However, on the frontend, when I attempt to access the Google ID and email using:
I can successfully retrieve the email, but the Google ID is incorrect. It shows
216684855340380610000
instead of the expected216684855340380658625
.After researching the issue, I learned that this might be due to JavaScript's
Number
type, which uses 64-bit floating-point precision and cannot accurately represent numbers larger than 253−12^{53} - 1253−1.Could you please guide me on how to retrieve the correct Google ID in my component while using TanStack Router?"
Beta Was this translation helpful? Give feedback.
All reactions