Hi @Shawn s ,
Thanks for reaching out.
I understand that you are building electron application and confuse about redirect URI while configuring your application.
Regarding the redirectUri, it's important to note that the redirectUri is the URI that the Microsoft identity platform will redirect the user to after they have authenticated. This URI you are configuring in your application must be registered in the Azure portal for your application.
After authentication, you can redirect the users to your application's page.
As for how to decide on a redirectUri, you can use any valid URI that you have access to. If you are developing locally, you can use a localhost URI such as http://localhost:3000/
. If you are deploying your application, you can use your application’s domain name as the redirectUri.
You shouldn't use ${'YOUR_TENANT_ID'}
directly as part of your redirect URI. Instead, you should have a consistent redirect URI that your app uses, and it should be configured in your app registration on the Azure portal.
Reference - https://learn.microsoft.com/en-us/azure/active-directory/develop/reply-url
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.