okta / okta-react

Okta OIDC SDK for React
https://github.com/okta/okta-react
Other
114 stars 78 forks source link

What's the best way to add okta auth to a react app that has SSR? #137

Open afaya-partssource opened 3 years ago

afaya-partssource commented 3 years ago

I'm submitting a:

Current behavior

We can make the SDK work fine on non-ssr apps but we have one that already has (and needs) SSR and we are not sure what would be the best way to approach the integration.

Expected behavior

Be able to continue using our internal login component, with Okta SDK and SSR

Environment

Configuration

shuowu commented 3 years ago

@afaya-partssource You can try okta-auth-js v5.x + okta-react v6, as okta-auth-js starts to provide isomorphic authClient since version 5. Check the migration guide for details.