Open siddharthsharma94 opened 2 years ago
Todo: apply changes from https://github.com/blitz-js/blitz/pull/3289 in Toolkit
Prisma supports BigInt
since a while now. Can we use SuperJson
to serialize the publicData? It looks like the merge request went stale and the stuff was moved to blitz-auth now.
What is the problem?
createSessionToken
usesJSON.stringify
on the publicData being passed in, which doesn’t support BigInt. Seems like a use case for superjson instead?Paste all your error logs here:
TypeError Do not know how to serialize a BigInt error stack: • blitzjs-core-server.cjs.dev.js:805 createSessionToken node_modules/@blitzjs/core/server/dist/blitzjs-core-server.cjs.dev.js:805:29
• blitzjs-core-server.cjs.dev.js:1167 createNewSession node_modules/@blitzjs/core/server/dist/blitzjs-core-server.cjs.dev.js:1167:24 • blitzjs-core-server.cjs.dev.js:729 $create
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
cc @dillonraphael No response