# Error when using custom authorization server

**URL:** <https://devforum.okta.com/t/error-when-using-custom-authorization-server/11664>\
**Category:** Questions\
**Created:** [November 8, 2020, 7:40pm UTC](https://devforum.okta.com/t/error-when-using-custom-authorization-server/11664 "2020-11-08T19:40:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![segevgal](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@segevgal](https://devforum.okta.com/u/segevgal)\
**Post date:** [November 8, 2020, 7:40pm UTC](https://devforum.okta.com/t/error-when-using-custom-authorization-server/11664/1 "2020-11-08T19:40:47Z")

</div>

Hi all,

We have a working authentication flow using the default authentication server and an Okta application.  
When trying to use a custom server we keep getting an error from the Okta SDK:

> AuthSdkError: OAuth flow response state doesn’t match request state

The above error is presented in the login callback response ([myapp.mydomain.com/login/callback](http://myapp.mydomain.com/login/callback)).  
The default server does it correctly.  
We’re using the Angular SDK.

Any ideas?

Thanks,  
Gal

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [November 13, 2020, 1:42am UTC](https://devforum.okta.com/t/error-when-using-custom-authorization-server/11664/2 "2020-11-13T01:42:24Z")

</div>

Hi @segevgal! What version of the Angular SDK are you using?

---

<div class="post-metadata">

**Author:** ![segevgal](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@segevgal](https://devforum.okta.com/u/segevgal)\
**Post date:** [November 27, 2020, 8:16am UTC](https://devforum.okta.com/t/error-when-using-custom-authorization-server/11664/3 "2020-11-27T08:16:20Z")

</div>

Hi @sigama  
we’re using okta-angular 2.2.1  
thanks

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 19, 2024, 1:02am UTC](https://devforum.okta.com/t/error-when-using-custom-authorization-server/11664/4 "2024-01-19T01:02:36Z")

</div>

Closed on January 19, 2024, 1:02am UTC


