This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
WIP: Example of using @auth0/angular-jwt npm package #463
+41
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example of usage of @auth0/angular-jwt for issue #291.
This is a WIP. #291 was based on an older version of this example when angular/angular was still build from source. I've based this example on the latest. The error observed in #291 is not seen here but there are a few other issues with the
@auth0/angular-jwt
npm package that need resolving before it can be used with Bazel.Not 100% why rollup_bundle is failing but in any case the import needs to be changed to:
import { from } from "rxjs"
which may require updating to a newer rxjs. The deep import wouldn't work in devmode anyway.@auth0/angular-jwt
package.jsonmain
points to an unnamed UMD bundle:"main": "bundles/core.umd.js",
:bundles/core.umd.js
gets automatically picked up by ts_devserver as the npm package looks like its in APF (angular package format). However, because the UMD bundle is not named it breaks devmode at runtime:@kyliau I think we should update the check on APF to check if the
umd.js
file is named-AMD or named-UMD.// cc @alexeagle @mgechev