Auth0 for Native Java MacOS app

I have a Java desktop app for MacOS I want to implement auth for my native application. I can see there is a quickstart for Swift language; users can login & the token will be returned to the application itself through use of an embedded browser. I think this is the best solution so I can log users in straight away to the native app after login on auth0 web portal.

Is there any way I can get this functionality for my app similar to the functionality here Auth0 iOS / macOS SDK Quickstarts: Login or on other native/ mobile platforms?