Auth0 Home Blog Docs

Get an id_token automatically for testing

I am using a OneLogin OIDC connector in my web app to get an id_token via the implicit flow. I am working on writing tests for my app, and I need a way to be able to requests jwt id_token for some test users in an automated way and I was wondering if there is a way to do this without having to go through the web app and have to request the token every two hours. I tried using the Password Grant flow for this using the code in here:

But in the response from OneLogin, I get only the access_token and the refresh_token. Alternatively Is there a way to do this by making API requests?