# localizationKey is null for identify step missing username/password

**URL:** <https://devforum.okta.com/t/localizationkey-is-null-for-identify-step-missing-username-password/32790>\
**Category:** Questions\
**Tags:** swift, idx, kotlin\
**Created:** [April 2, 2025, 1:43pm UTC](https://devforum.okta.com/t/localizationkey-is-null-for-identify-step-missing-username-password/32790 "2025-04-02T13:43:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssmith59](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@ssmith59](https://devforum.okta.com/u/ssmith59)\
**Post date:** [April 2, 2025, 1:43pm UTC](https://devforum.okta.com/t/localizationkey-is-null-for-identify-step-missing-username-password/32790/1 "2025-04-02T13:43:54Z")

</div>

For using idx, in the android and swift sdks when there is a form error on the identify step, missing username/password fields, there is not a localization key for those fields.

If we wanted to monitor around a unique identifier for these fields, there currently isn’t a way to determine what the form errors are from the idx messages.

Is this expected behavior for the idx flow? Curious why the localizationKey is null for these fields or if there is something I’m missing.

I would assume in this case, the localization key should be this:

> <https://github.com/okta/okta-signin-widget/blob/ca430bdd1b6937350f65b558878fc9ed8b34d1f7/packages/%40okta/i18n/src/properties/login.properties#L55C1-L56C50>

Thank you for the support.

---

<div class="post-metadata">

**Author:** ![ssmith59](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@ssmith59](https://devforum.okta.com/u/ssmith59)\
**Post date:** [April 2, 2025, 3:04pm UTC](https://devforum.okta.com/t/localizationkey-is-null-for-identify-step-missing-username-password/32790/2 "2025-04-02T15:04:52Z")

</div>

Also to add, I noticed in okta-idx-swift when the username field is empty it results in an interactioncodeflow error. With okta-idx-android, it returns an IdxMessage with an error message that the identifier field is needed.

after digging, it looks like null is treated as empty string in kotlin, but in swift it remains nil.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [May 2, 2025, 3:05pm UTC](https://devforum.okta.com/t/localizationkey-is-null-for-identify-step-missing-username-password/32790/3 "2025-05-02T15:05:38Z")

</div>

Closed on May 2, 2025, 3:05pm UTC

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