PRX / styleguide.prx.org

Styleguide and components for PRX front end apps
MIT License
2 stars 1 forks source link

Readable auth tokens #214

Open cavis opened 4 years ago

cavis commented 4 years ago

Make our frontend apps play nicely with PRX/id.prx.org#166.

As more granular scopes are included in the auth tokens, we'll want to tailor the frontend features based on what the user can do. To start down that road:

cavis commented 4 years ago

Ooh, there is already some decoding here. I didn't know that!

cavis commented 4 years ago

Okay, in that case ... add some easy shortcuts for checking PRX API objects against the token. Port some of the prx-auth rack/rails code for decoding the tokens. And checking an object prx:account link against it.