Login with License Check

I was wondering if anyone has been able to implement what I’m trying to accomplish?
I’m trying to set things up so that I can eventually wrap the entire Blazor project with Electron and publish as a desktop app.

However, the main goal here is to have the user login and validate they have an active account as well as to check that the license they supply is valid.