Open dwradcliffe opened 3 months ago
Honestly my initial reaction was to say it's required for the callback redirect code in
and
Git blame says it was added pretty early in development - https://github.com/fastenhealth/fasten-onprem/commit/9c7504e7bda1cae276655bfa6631ac0775702c0a
I think I had issues calling the Oauth
functions without doing the script import. It could also be related to the crypto.subtle
polyfill (for users who run Fasten on a custom domain, but without a valid cert. eg. health.local
or health.internal
)
I never had issues with this during development however. I'm surprised that you cant compile.
Because it's imported in those places properly, I think it shouldn't be needed in the global namespace. I'll PR to remove it.
What happened?
I'm seeing this error in the js console, coming from the included oauth4webapi library.
https://github.com/fastenhealth/fasten-onprem/blob/7d0715755051d591bc94e873a75f43d3da4ba921/frontend/angular.json#L79
I believe this is because this file is a module which can't be included directly without using
type="module"
in the script tag. But angular doesn't support this because anything that is a module should be included in the main bundle.So, where is this being used and is it actually working?
Flavor
Docker
Version
dev