Build and Test a React Native App with TypeScript and OAuth 2.0

Build and Test a React Native App with TypeScript and OAuth 2.0

Use TypeScript to build and test a React Native app with authentication.

Hieu Nguyen

Got the app installed and running but when click Authorize then a popup shows up with “Failed to log in” “Failed to fetch configuration”. Any ideas?

Matt Raible

What values are you using for the following placeholders?


issuer aka {yourOktaDomain}
{redirectBase}
{clientId}
{redirectUrl}

I’m guessing one of these might be wrong.

Hieu Nguyen

Thx for your quick response. I got the problem solved by making the domain consistent (still puzzled me on the true technical nature). The root cause was in the conflict between redirectUrl which is listed as “com.oktapreview.dev-515765:/callback” and the issuer listed with a custom domain, “https://sso.557hollow.dev/o…”.

New Development

Very much informative post about Build and Test a React Native App with TypeScript and OAuth 2.0, thanks for sharing such a great content. https://www.blissshine.com/ Payday Loans | Insurance