I am doing a login screen for my application I have followed the steps given in the sample base code of hydra login-consent with nodejs (https://github.com/ory/hydra-login-consent-node). Now I don’t need a consent screen for the user to approve but I also need to get the access token and refresh token when the user logs in.
Well, then just accept the consent request in your consent provider, call API to accept the consent and send the redirect to the URL returned by Hydra. Do not send any forms.
Ok ngrigoriev i will try the steps which you have mentioned and let you know on them.