# JWT autologin is possible?

**URL:** <https://community.auth0.com/t/jwt-autologin-is-possible/86738>\
**Category:** Get Help\
**Tags:** login\
**Created:** [July 11, 2022, 1:41pm UTC](https://community.auth0.com/t/jwt-autologin-is-possible/86738 "2022-07-11T13:41:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldibello](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ldibello/32/22011_2.png) [@ldibello](https://community.auth0.com/u/ldibello)\
**Post date:** [July 11, 2022, 1:41pm UTC](https://community.auth0.com/t/jwt-autologin-is-possible/86738/1 "2022-07-11T13:41:00Z")

</div>

Hi everybody! I have a question for the community… Is there a way to send the JWT to a spa and ejecute a kind of autologin, and login the user into de page via auth0 library?

My bassic example is login into a spa and get de jwt. Then open an incognit mode browser and login by using this jwt.

Regards  
Leandro

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 11, 2022, 11:41pm UTC](https://community.auth0.com/t/jwt-autologin-is-possible/86738/4 "2022-07-11T23:41:03Z")

</div>

Hi there @ldibello welcome to the community!

> [@ldibello](#):
>
> Is there a way to send the JWT to a spa and ejecute a kind of autologin, and login the user into de page via auth0 library?

It sounds like you might be interested in [silent auth](https://auth0.com/docs/authenticate/login/configure-silent-authentication) - Some more context can be found in the following post:

> [@Get access token silently react sdk](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196/3):
>
> Hi @pandeysumit832, It is described [here](https://auth0.com/docs/libraries/auth0-single-page-app-sdk#get-access-token-with-no-interaction). In short, it sees if a valid access token is stored in memory, otherwise it requests a new one from the Auth0 server. There are some subtle differences on how it gets a new token depending on whether or not you are using refresh token rotation.

> [@ldibello](#):
>
> Then open an incognit mode browser and login by using this jwt.

Unfortunately, incognito is designed to be an isolated browser session and thus this won’t work between a standard browser window and incognito.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ldibello](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ldibello/32/22011_2.png) [@ldibello](https://community.auth0.com/u/ldibello)\
**Post date:** [July 12, 2022, 3:36pm UTC](https://community.auth0.com/t/jwt-autologin-is-possible/86738/6 "2022-07-12T15:36:02Z")

</div>

Ok, but the problem resides on passing Access Token from app native to external browser, thats why I put the incognito browser example, because its something similar.

So I thinks its not gonna be possible by oauth2 standards.

Regards and thanks for our replies.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 27, 2022, 3:36pm UTC](https://community.auth0.com/t/jwt-autologin-is-possible/86738/7 "2022-07-27T15:36:04Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
