Need to validate the user for authorization code

Can we validate the user by providing username and password (not on login page) in the process of getting authorization code from authorization server?
note - I am integrating auth0 with Cypress but the grant type set as “Authorization code”

Hi @tjishant10,

Welcome to the Auth0 Community!

Unfortunately, no, and this is not recommended. Instead, you must go through the authorization code flow to request an access token then you can validate the access token granted to the user.

I recommend checking out our Add Login Using the Authorization Code Flow and Validate Access Tokens for more information.

Please let me know if you have any additional questions.

Thanks,
Rueben