Custom API Endpoints: Enforce Authentication?
-
I have a couple API Endpoints I’ve built that I need to enforce authentication for. For example, one endpoint exposes a user’s email address. I only want to return the email address if the user has their JWT in the call.
‘The JWT is sent with the API call, but what I can’t figre’The JWT is sent with the API call, but what I can’t figure out is that right method to build into the API callback to only return the data if the user is authenticated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom API Endpoints: Enforce Authentication?’ is closed to new replies.