# Native mobile with PKCE and Custom Login page ( no widget )

**URL:** <https://devforum.okta.com/t/native-mobile-with-pkce-and-custom-login-page-no-widget/13951>\
**Category:** Questions\
**Created:** [April 26, 2021, 7:01am UTC](https://devforum.okta.com/t/native-mobile-with-pkce-and-custom-login-page-no-widget/13951 "2021-04-26T07:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niall\_atlas](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@niall\_atlas](https://devforum.okta.com/u/niall_atlas)\
**Post date:** [April 26, 2021, 7:01am UTC](https://devforum.okta.com/t/native-mobile-with-pkce-and-custom-login-page-no-widget/13951/1 "2021-04-26T07:01:09Z")

</div>

Morning. We have existing native ( iOS and Android ) mobile applications along with a number of web based services using OIDC and SAML applications and want to move to a central fully custom login page without using the Okta widget ( UI reasons ).

I have the web based apps covered for login, but the existing native mobile applications, I can’t see how they will work with a custom hosted login page and I wondered if someone could point me in the right direction.

1. How will the app redirect to the custom hosted page in place of the Okta login page. Do I handle that manually in the app ( not preferred as I’d like to migrate without having to update the apps )
2. How can the custom hosted login page handle the code verifier and state/nonce generated by the app during the OIDC /authorize request ?

---

<div class="post-metadata">

**Author:** ![Fuzzard](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/fuzzard/32/1909_2.png) [@Fuzzard](https://devforum.okta.com/u/Fuzzard)\
**Post date:** [April 28, 2021, 5:14am UTC](https://devforum.okta.com/t/native-mobile-with-pkce-and-custom-login-page-no-widget/13951/2 "2021-04-28T05:14:20Z")

</div>

we have a few samples for using a custom login page instead of redirecting to okta; hope these help

> **[okta/samples-js-react-native](https://github.com/okta/samples-js-react-native/tree/master/custom-sign-in)**
>
> master/custom-sign-in

> **[okta/samples-android](https://github.com/okta/samples-android/tree/master/custom-sign-in)**
>
> master/custom-sign-in

> **[okta/samples-ios](https://github.com/okta/samples-ios/tree/master/custom-sign-in)**
>
> master/custom-sign-in

---

<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:** [February 7, 2024, 12:13am UTC](https://devforum.okta.com/t/native-mobile-with-pkce-and-custom-login-page-no-widget/13951/3 "2024-02-07T00:13:39Z")

</div>

Closed on February 7, 2024, 12:13am UTC

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