We are using Authorization Code as grant type and i need help with token generation process.
At present, i am using below steps as local action in a button click to generate token
1: Run Activity pxCreateAuthURL - pass my authentication Profile name as input
2: Open URL in new Window
Alternatate Domain Window = .pyOauthURLRedirect
But with this approach, a new browser window is being opened every time the user clicks on a button (which does an API call)
Is there any other best approach for the same. Thanks in advance.