okta / okta-signin-widget

HTML/CSS/JS widget that provides out-of-the-box authentication UX for your organization's apps
Other
374 stars 317 forks source link

Older version of okta-auth-js referenced in latest sign-in-widget #1528

Open sitsmonty opened 4 years ago

sitsmonty commented 4 years ago

I'm submitting a

Background info

In latest version (5.0.2) of sign-in-widget, the okta-auth-js version referred in "devDependecies" section refers to "~4.0.4" and due to that, we are not able to use the huge set of new APIs added to okta-auth-js library on "4.1.0" version during development. Was there a certain reason for this? Is there a workaround?

Expected behavior

Should have been using latest auth-js version.

Your environment

shuowu commented 4 years ago

@sitsmonty With sign-in-widget version 5.x we do suggest using showSignInAndRedirect or showSignInToGetTokens for authentication. Migating guide

For other auth-js usages, we would suggest creating your own oktaAuth instance, then call the needed APIs from there.