# How can I change jwe to jwt for social login?

**URL:** <https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [March 11, 2025, 12:54pm UTC](https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702 "2025-03-11T12:54:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aayesha.shrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aayesha.shrestha/32/70921_2.png) [@aayesha.shrestha](https://community.auth0.com/u/aayesha.shrestha)\
**Post date:** [March 11, 2025, 12:54pm UTC](https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702/1 "2025-03-11T12:54:48Z")

</div>

I have a webapp with two different logins. 1. Username-password 2. Social login with Google. For username-password, I get jwt and on API calls to my backend, I decode this using JWKs. For social login, I get a jwe.

Below is my code to decode the token.

```auto
unverified_header = jwt.get_unverified_header(token)
print(unverified_header)
kid = unverified_header["kid"]
public_key = Auth0().get_public_key(kid) 
payload = jwt.decode(
       token,
       public_key,
       algorithms=["RS256"],
       audience=audience,
       issuer=issuer,
)

```

Log of unverified\_header for username-password:  
{‘alg’: ‘RS256’, ‘typ’: ‘JWT’, ‘kid’: ‘kid\_value’}

Log of unverified\_header for social login:  
{‘alg’: ‘dir’, ‘enc’: ‘A256GCM’, ‘iss’: ‘’}

How can I change jwe to jwt for social login?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [March 11, 2025, 1:06pm UTC](https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702/2 "2025-03-11T13:06:22Z")

</div>

Hi @aayesha.shrestha

Welcome to the Auth0 Community!

Thank you for posting your question, please check our knowledge solution regarding getting JWT instead of JWE → [How to Stop Getting JWEs when JWT is Required](https://community.auth0.com/t/how-to-stop-getting-jwes-when-jwt-is-required/149863)

I hope this will help you!  
Dawid

---

<div class="post-metadata">

**Author:** ![aayesha.shrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aayesha.shrestha/32/70921_2.png) [@aayesha.shrestha](https://community.auth0.com/u/aayesha.shrestha)\
**Post date:** [March 12, 2025, 5:17pm UTC](https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702/3 "2025-03-12T17:17:36Z")

</div>

Hi @dawid.matuszczyk thanks for quick reply. It looks like I am doing same thing as mentioned in the knowledge solution. And for username-password login, it works fine. However the issue is only in social login, where it gives jwe. Is there anything different that needs to be done for social login?

---

<div class="post-metadata">

**Author:** ![aayesha.shrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aayesha.shrestha/32/70921_2.png) [@aayesha.shrestha](https://community.auth0.com/u/aayesha.shrestha)\
**Post date:** [March 14, 2025, 1:15am UTC](https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702/4 "2025-03-14T01:15:22Z")

</div>

Hi @dawid.matuszczyk thanks for quick reply. It looks like I am doing same thing as mentioned in the knowledge solution. And for username-password login, it works fine. However the issue is only in social login, where it gives jwe. Is there anything different that needs to be done for social login?

---

<div class="post-metadata">

**Author:** ![web2h](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/web2h/32/14589_2.png) [@web2h](https://community.auth0.com/u/web2h)\
**Post date:** [May 7, 2025, 5:54pm UTC](https://community.auth0.com/t/how-can-i-change-jwe-to-jwt-for-social-login/183702/5 "2025-05-07T17:54:22Z")

</div>

Hi @dawid.matuszczyk , I checked your documentation link.The provided solution implies that we should toggle off JWE encryption.  
Unfortunately that option is not displayed in my API access token settings.
