# Next-Auth.js - How to change the expected JWT alg?

**URL:** <https://forum.codewithmosh.com/t/next-auth-js-how-to-change-the-expected-jwt-alg/23579>\
**Category:** Next.js\
**Created:** [November 12, 2023, 9:41am UTC](https://forum.codewithmosh.com/t/next-auth-js-how-to-change-the-expected-jwt-alg/23579 "2023-11-12T09:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flojo](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@flojo](https://forum.codewithmosh.com/u/flojo)\
**Post date:** [November 12, 2023, 9:41am UTC](https://forum.codewithmosh.com/t/next-auth-js-how-to-change-the-expected-jwt-alg/23579/1 "2023-11-12T09:41:36Z")

</div>

Hello,

I’ve tried to set `id_token_signed_response_alg` and `authorization_signed_response_alg` to `"ES256"` in the client config option of the provider.

But when I try to signin I still get the error:  
`error: RPError: unexpected JWT alg received, expected RS256, got: ES256`.  
Even tho I changed it to ES256???.

What am I missing / doing wrong?  
Thanks already -flojo
