<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007fWYcHCAWOkta Classic EngineAuthenticationAnswered2024-04-16T13:12:35.000Z2022-05-23T23:12:00.000Z2022-06-06T20:49:12.000Z

78aky (78aky) asked a question.

Okta authState is null when code parameter is present on URL

Hello everyone,

 

We're integrating with LinkedIn and when the user authorizes our app there, they add to the redirect URI a parameter called code.

 

http://localhost:3000/authentication/linkedIn?code=XXX

 

We figured out that when "code" is present on the URI the authState is null and it never updates.

 

Image is not available

 

If I changed "code" to anything else:

http://localhost:3000/authentication/linkedIn?hello=XXX

 

Image is not available

 

I think that the word code is an Okta reserved word, but I couldn't find anything on the documentation about it.

 

Also, we cannot change the "code" word as it's LinkedIn that's placing it in the URL. I may have some ideas to fix it but I consider them not good practices.

 

Hope somebody can help us figure out how can we fix this.


This question is closed.
Loading
Okta authState is null when code parameter is present on URL