The error says the required scopes are not listed in your app registration and to assign it
Go to the app's API Permissions section and assign the required permissions. For example, if the application is meant to open a Calendar, app should have permissions such as
- Calendars.ReadWrite
- User.Read
If the required permissions are not present, select the "Add a permission" option and then select "Microsoft Graph API" Based on the type of token you require select the appropriate option like delegated permission (if you want to access token in user's context) and application permission (if you want the access-token in application's context) and then search for the required permissions "Calendars.ReadWrite" and "User.Read" and add them by selecting "Add permissions"
Give it a try after that
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--