0
cb219
221d

How can you build an oidc library almost completely on observables? Cannot complain about it, as it's open source, but what if you want to access some token data synchronously?

Comments
  • 1
    @kobenz angular-auth-oidc-client
  • 0
  • 0
    Worked with it relatively recently.

    Having no synchronous way of accessing this data is by design.

    After all, the whole nature of oidc is asynchronous.

    However, I found some non documented places where you can get that.

    I don't remember them off the top of my head since I tend to erase from my mind anything javashit related, but I promise I'll check when I get home and post about it.
  • 0
    Apparently I'm too dumb to use the library. Haven't found an explanation how to access a route's custom data in the router, when using the code provided for the auth guard. It keeps trying to read the data property from the current route "a", before switching to the desired one "b", even if none provided for a. 😪
Add Comment