Currently working on a website utilizing Azure Static Web App, where the login/registration is managed by Azure B2C. The backend API consists of typescript Azure functions integrated with Azure Static web app. Certain API calls can only be accessed when the user is logged in, hence I am passing the bearer token to the backend.
I would like to know how to verify this token against my Azure B2C tenant within the backend (typescript), and if it's valid, send the requested data back to the user?