Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
afaya-partssource opened this issue Jun 15, 2021 · 1 comment
Open
1 of 3 tasks
Labels
question Further information is requested

Comments

@afaya-partssource
Copy link

I'm submitting a:

  • Bug report
  • Feature request
  • Other (Describe below)

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

  • Package version:
    "@okta/okta-auth-js": "4.8.0",
    "@okta/okta-react": "^5.0.0",
  • React version:
    "react": "^17.0.2",

Configuration

  • Okta application type: SPA
@shuowu
Copy link
Contributor

shuowu commented Jun 15, 2021

@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.

@shuowu shuowu added the question Further information is requested label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants