Closed garretmh closed 1 year ago
Thanks for submitting this issue. Internal ref: OKTA-575263
Any updates to this? Currently facing this issue as well
I ran into the same issue and was able to narrow it down to vue
v3.2.46 (https://github.com/vuejs/core/releases/tag/v3.2.46) - hope that helps.
For now my workaround is:
"vue": "=3.2.45"
You can also just use:
app.use(OktaVue, { oktaAuth } as any)
That way you can continue to use the latest version of vue.
Btw, this was fixed in v 5.6.0
Describe the bug?
The
OktaVueOptions
interface is incorrect. TheonAuthRequired
andonAuthResume
properties are both marked as required but should be optional.What is expected to happen?
According to the docs, using the OktaVue plugin with just oktaAuth defined should work.
What is the actual behavior?
In TypeScript projects, when using the OktaVue plugin both
onAuthRequired
andonAuthResume
are required.Reproduction Steps?
SDK Versions
@okta/okta-auth-js
6.9.0@okta/okta-vue
5.5.0typescript
4.9.0vue
3.2.47Execution Environment
Additional Information?
No response