Closed jaschahuisman closed 1 year ago
Good day ser. I'm trying to code along the token-gated NFT tutorial by Thirdweb in this article:
https://blog.thirdweb.com/guides/nft-gated-website/
However, during installation of the Auth SDK, I get an error about NextJS13 conflict. I tried using legacy-peer-deps, however after installation, no data could be pulled from ThirdWebAuth. Might you know what's the issue here?
Issue
When sending a blank
GET
request to/api/auth/login
using@thirdweb/auth
in Next.js (and Express.js as well) the whole server crashes because of an unexpected token in this line of code.This might be a vulnerability because this is a way to crash the whole backend with one single request.
Also to mention that the
atob
method used here is deprecated.The error
Possible solutions
req.query.payload
is null or undefined.