I am hosting an express app on Firebase Hosting with a Cloud Functions backend. My front end app sends the token to backend code (express app) to verify the user. I need both public and private api endpoints. I see there is a sample code (middleware for validating firebase id token) for securing api end points with admin sdk. Link to the code: https://github.com/firebase/functions-samples/blob/master/authorized-https-endpoint/functions/index.js
The endpoint in the code is only accessed by the authenticated user but how can I also have endpoints for non Authenticated user (public end points)?