I am trying to follow the react sample, but I’m using typescript. There are just too many things I don’t know to make assumptions to get it working. Is there any possibility anyone has gotten a sample application using react, typescript and react router 4 up and running? I have been spending waaay too much time on this. I don’t want to give up, but this was supposed to be the big timesaver part of my project. Can anyone help me?
Are you trying to use our Sign-In Widget or Auth SDK? I’ve written several apps with Angular, TypeScript, and Okta. It should be similar for React.
I’m trying to use the Auth SDK.
Here’s a tutorial that shows how I used it with Angular and Angular CLI:
As an alternative to adding it as a script, you can simply do:
import OktaAuth from '@okta/okta-auth-js';
The oauthService
is from angular-oauth2-oidc, but it isn’t really used until the end.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.