im following this tutorial https://fluentjs.medium.com/angular-spa-and-node-js-api-with-azure-ad-for-authentication-in-2021-b2974666c2eb to create angular app and nodejs api
in azure app registration when exposing an api even if i dont add the angular client id to it i still can get a token and authorize to the nodejs api
here i have another client id so basically im using an angular app which is not set in the nodejs expose api

here is my angular environment
and here is my nodejs config.js
how im able to get authorization to nodejs api from angular app which i dont have exposed the api to it ?


I created a backend app and Exposed an API (Admins only) like below:
Added Authorized client applications:
Now I tried to access the
backendappwith the another app which is not added as client application:And access token is generated successfully:
And using this access token, the application can access the API.
Reference:
oauth 2.0 - Azure Active Directory - How to restrict Backend API App Registration to a specific client App Registration - Stack Overflow by Rohit Saigal