# Suddenly RS256 tokens generated from HS256 apps

**URL:** <https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315>\
**Category:** Get Help\
**Tags:** jwt, auth0\
**Created:** [March 13, 2020, 1:06am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315 "2020-03-13T01:06:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![iameugenejo\_impact](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/iameugenejo_impact/32/13810_2.png) [@iameugenejo\_impact](https://community.auth0.com/u/iameugenejo_impact)\
**Post date:** [March 13, 2020, 1:06am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/1 "2020-03-13T01:06:36Z")

</div>

My sites have been used HS256 algo for years, now Auth0 is generating RS256 tokens, and it’s breaking all my sites.

The same thing seems to have happened in 2017 - [Server returns RS256 but HS256 is selected](http://community.auth0.com/t/server-returns-rs256-but-hs256-is-selected/8127)

What’s going on?

---

<div class="post-metadata">

**Author:** ![dragosdm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dragosdm/32/13499_2.png) [@dragosdm](https://community.auth0.com/u/dragosdm)\
**Post date:** [March 13, 2020, 6:18am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/2 "2020-03-13T06:18:28Z")

</div>

I have the exact same problem and it started about 5-6hrs ago.  
in my case it works for email/password login but social logins are generating RS256 tokens

@iameugenejo_impact have you found an workaround for it?

---

<div class="post-metadata">

**Author:** ![antti.terho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/antti.terho/32/12751_2.png) [@antti.terho](https://community.auth0.com/u/antti.terho)\
**Post date:** [March 13, 2020, 8:02am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/3 "2020-03-13T08:02:39Z")

</div>

Same here, I have no idea why this is happening… Any news?

---

<div class="post-metadata">

**Author:** ![krikke999](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/krikke999/32/12811_2.png) [@krikke999](https://community.auth0.com/u/krikke999)\
**Post date:** [March 13, 2020, 8:21am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/4 "2020-03-13T08:21:25Z")

</div>

I am having the same problem, my site is using HS256 for many years, today oauth returns RS256 even that HS256 is still active the configuraton of the Application.

---

<div class="post-metadata">

**Author:** ![lukasgilz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukasgilz/32/19801_2.png) [@lukasgilz](https://community.auth0.com/u/lukasgilz)\
**Post date:** [March 13, 2020, 8:45am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/5 "2020-03-13T08:45:07Z")

</div>

same for out application

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 13, 2020, 9:49am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/6 "2020-03-13T09:49:49Z")

</div>

Can you all, who are experiencing it, please clarify/confirm:

in your API registered in Auth0 you have definitely set the Signing Algorithm to **HS256**

 ![Screen Shot 2020-03-13 at 10.45.42](https://global.discourse-cdn.com/auth0/original/3X/2/c/2cce4334b77f86b78900917ce8f7798060c6d943.png)

and it shows up like this in the API settings afterwards:

 ![Screen Shot 2020-03-13 at 10.48.02](https://global.discourse-cdn.com/auth0/original/3X/0/3/03cfa25be2d18cdd34e05ff277c6af4b2134b66f.png)

and the `audience` in the authorize request is set for this particular audience / API? (in my screenshot example, it would be: `audience: https://my-api/`

(If all is the case, then it would be a bug.)

> My sites have been used HS256 algo for years, now Auth0 is generating RS256 tokens, and it’s breaking all my sites.

@iameugenejo_impact Are you saying, your sites have been using Auth0 as authorization servers for years and all worked, and without any changes on your end, the algorithm used has suddenly changed within the last few days?

---

<div class="post-metadata">

**Author:** ![lukasgilz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukasgilz/32/19801_2.png) [@lukasgilz](https://community.auth0.com/u/lukasgilz)\
**Post date:** [March 13, 2020, 10:24am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/7 "2020-03-13T10:24:06Z")

</div>

@mathiasconradt That is exactly the same issue we are having. Just 2 minutes ago it just started working again.

---

<div class="post-metadata">

**Author:** ![dragosdm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dragosdm/32/13499_2.png) [@dragosdm](https://community.auth0.com/u/dragosdm)\
**Post date:** [March 13, 2020, 10:33am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/8 "2020-03-13T10:33:57Z")

</div>

@mathiasconradt same in our case: we didn’t do any changes (codebase level or Auth0 settings) and it stoped working about 7-8hrs ago and now (again without any changes on our side) it started working again.

In our case the email/password login was working but social logins didn’t work.

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 13, 2020, 11:33am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/9 "2020-03-13T11:33:28Z")

</div>

Thanks both for confirming. I’ll check it internally.

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 13, 2020, 11:51am UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/10 "2020-03-13T11:51:38Z")

</div>

Product team is aware of it, it’s due to a change, and working on a rollback.

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 13, 2020, 1:12pm UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/11 "2020-03-13T13:12:39Z")

</div>

The issue should be resolved. Can you please check.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 28, 2020, 1:12pm UTC](https://community.auth0.com/t/suddenly-rs256-tokens-generated-from-hs256-apps/39315/12 "2020-03-28T13:12:43Z")

</div>

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