logto-io / js

🤓 Logto JS SDKs.
https://docs.logto.io/quick-starts/
MIT License
61 stars 40 forks source link

feat(js): add secureRoutes support to buildAngularAuthConfig util #657

Closed charIeszhao closed 6 months ago

charIeszhao commented 6 months ago

Summary

Add support to secureRoutes config in buildAngularAuthConfig util, so that angular-auth-oidc-client will automatically add access tokens to request header for these routes.

Feature requested by community: https://discord.com/channels/965845662535147551/1215176080680550461

Testing

We can do this now:

image

Checklist

- [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

charIeszhao commented 6 months ago

After discussion, we've decided not to mix Logto configs with angular-oidc-auth-client configs, since some of the params are conflicting and might cause further confusion. Closing the ticket...