
kmk2c (kmk2c) asked a question.
We have added custom claim e.g abc, and we try to get required data from accesstoken
We noticed that when i first login only this scope [“openid”, “profile”, “email”] is passed
and the custom claim “abc” is not included
When login 2nd time onwards it starts to work fine.
So my question is, does okta send some default claims before it gets the custom claim?
How do i resolve this issue

Hello @kmk2c (kmk2c) Thank you for reacting out to our Community!
We would recommend to check that the first set of tokens received were issued by the authorization server on which you created that custom claim. IF the first login was done using one Authorization Server (without the claim on it) but the subsequent ones use another Authorization Server (that does have the custom claim) this would explain your issue.
It seems that you have also reached out to our Developer forum on this matter, I would recommend to continue working with them on this matter as they are the experts for this type of questions.
https://devforum.okta.com/t/custom-added-claims-not-sent-when-login-for-first-time/26684
Community members help others by clicking Like or Select as Best on responses. Try it today.
Earn Today: New Okta Community Badges Have Arrived
Subscribe Today: The Okta Community is on YouTube