Pass JWT token in URL when redirecting after Google login using Web3AuthNoModal

I’m trying to login using Google as loginProvider specifiying a redirectUrl:

await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
        loginProvider: "google",
        redirectUrl
      });

I would like that the JWT generated after google successful login to be passed in the query string of the redirectUrl. Is that possible? If so, how could I achieve it?

@joseandresromero18 Welcome Aboard!

Our team will review your request and get back you on Monday.

Could you please tell me the use case for passing jwt token in URL ?

@maharshi Hi, I’m replying from another account, because I couldn’t log in as joseandresromero18, and the use case is the following:
I have a NextJS 13 app where what I want to do is to receive the JWT token in the URL so I can get it in the middleware and then I can store a cookie with that token. With that token stored as a cookie I send it in future calls to my backend.