I spent a good part of today battling with Auth0’s awkward documentation and muddy concepts trying to figure out how I can turn an access token from my web client into actionable user data on my API.
As a result I created a small plug to help the community avoid the pitfall I ran into trying to get this running. I hope you enjoy!
P.s. I’ll put out a tutorial around this in a week or so
Good point @chulkilee! It would simplify the code for sure. I just generally didn’t want to trip up a beginner to JWTs on Bearer vs bearer so I made it not matter. Who knows if it will help someone out but I hope so.
Very nice thank you for putting this together. I’ve done something nearly identical in the past and never gotten around to polishing it up for general reuse so I’m sure this will be useful for me in the future.