# \[Archive\] Pass JWT token in URL when redirecting after Google login using Web3AuthNoModal

**URL:** <https://builder.metamask.io/t/archive-pass-jwt-token-in-url-when-redirecting-after-google-login-using-web3authnomodal/1677>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [December 1, 2023, 3:52pm UTC](https://builder.metamask.io/t/archive-pass-jwt-token-in-url-when-redirecting-after-google-login-using-web3authnomodal/1677 "2023-12-01T15:52:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseandresromero18](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@joseandresromero18](https://builder.metamask.io/u/joseandresromero18)\
**Post date:** [December 1, 2023, 3:52pm UTC](https://builder.metamask.io/t/archive-pass-jwt-token-in-url-when-redirecting-after-google-login-using-web3authnomodal/1677/1 "2023-12-01T15:52:01Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **joseandresromero18** on 12/1/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

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

```auto
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?

---

<div class="post-metadata">

**Author:** ![vjgee](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vjgee](https://builder.metamask.io/u/vjgee)\
**Post date:** [December 2, 2023, 6:46am UTC](https://builder.metamask.io/t/archive-pass-jwt-token-in-url-when-redirecting-after-google-login-using-web3authnomodal/1677/2 "2023-12-02T06:46:54Z")

</div>

@joseandresromero18 Welcome Aboard!

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

---

<div class="post-metadata">

**Author:** ![maharshi](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/maharshi/32/1525_2.png) [@maharshi](https://builder.metamask.io/u/maharshi)\
**Post date:** [December 5, 2023, 6:32am UTC](https://builder.metamask.io/t/archive-pass-jwt-token-in-url-when-redirecting-after-google-login-using-web3authnomodal/1677/3 "2023-12-05T06:32:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joseandresromero181](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@joseandresromero181](https://builder.metamask.io/u/joseandresromero181)\
**Post date:** [December 5, 2023, 6:45pm UTC](https://builder.metamask.io/t/archive-pass-jwt-token-in-url-when-redirecting-after-google-login-using-web3authnomodal/1677/4 "2023-12-05T18:45:23Z")

</div>

@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.
