You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okta references these helper methods in multiple locations, but they are not properly typed and exported so they cannot be used without using //@ts-ignore or some other means to get past the build error.
The method is documented in the source code sample apps and In okta's documentation on webauthn.
These methods can be used by adding a ts-ignore, but that is risky and makes me want to re-write them instead. Is it possible to get typings for the methods in the webauthn file?
There is some mention about types not working for typescript < 3.6 in the readme, but that is not the case in my repository. We're on TS 4.0 version.
Error message from compiler.
error TS2339: Property 'webauthn' does not exist on type 'typeof OktaAuth'.
Reproduction Steps?
Create a typescript application
Install '@okta/okta-auth-js'
Try and call any static methods off of OktaAuth such as OktaAuth.webauthn.buildCredentialCreationOptions()
I've tried accessing these methods in many different ways, but none of them seem to work other than adding ts-ignore and just hoping the static method continues to exist as a method on the OktaAuth class.
The text was updated successfully, but these errors were encountered:
Describe the bug
Okta references these helper methods in multiple locations, but they are not properly typed and exported so they cannot be used without using //@ts-ignore or some other means to get past the build error.
The method is documented in the source code sample apps and In okta's documentation on webauthn.
These methods can be used by adding a ts-ignore, but that is risky and makes me want to re-write them instead. Is it possible to get typings for the methods in the webauthn file?
There is some mention about types not working for typescript < 3.6 in the readme, but that is not the case in my repository. We're on TS 4.0 version.
Error message from compiler.
error TS2339: Property 'webauthn' does not exist on type 'typeof OktaAuth'.
Reproduction Steps?
Create a typescript application
Install '@okta/okta-auth-js'
Try and call any static methods off of
OktaAuth
such asOktaAuth.webauthn.buildCredentialCreationOptions()
SDK Versions
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M1 Pro
Memory: 405.50 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.19.0/bin/yarn
npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
pnpm: 8.6.7 - ~/.yarn/bin/pnpm
Browsers:
Chrome: 129.0.6668.90
Safari: 17.6
Additional Information?
I've tried accessing these methods in many different ways, but none of them seem to work other than adding ts-ignore and just hoping the static method continues to exist as a method on the
OktaAuth
class.The text was updated successfully, but these errors were encountered: