I have previously asked about this here: https://auth0.com/forum/t/electron-auth0-from-main-process-with-auth-js/5609/6
I am trying to authenticate a user and obtain their
app_metadata from the main process of an electron app. Using
webAuth.client.login() works fine, however, calling
webAuth.client.userInfo() afterwards does not include the user’s
webAuth.client.login() also does not include the
userId, which prevents me from using the management api to fetch the user_profile instead.
Is there a simple guide on how to authenticate a user using the authentication api without any redirects or popups? I know about the pkce demos (https://github.com/darkyen/pkce-demos/) but am having trouble implementing them without forcing the user to leave the electron app and logging in inside his browser.