Facing issue to get refresh token

Hi, I am trying to get refresh token for a regular web application but not able to get, I am using a free account, is this due to free account. can you please suggest.

Hi @ankitelevon,

Welcome to the Auth0 Community!

No, this shouldn’t be related to your account type.

If you give us more information we can help you debug.

Hi Dan, Thanks for your reply.
we are trying to create token and refresh token using python, for that we need authorization code and we are using

this url to generate authorization code, the issue is the above given url is working in browser and getting authorization code in browser and using that we are able to create token and refresh token,

but as we are checking that one authorization code allow to create only one token, for a new token for new user we have to create a new authorization code but due to python script we are not able to crate authorization code.

we are using request module to call a get request with this url but its not working, the request is below,

import requests

r = requests.head(‘https://dev-1fqd8ba7.us.auth0.com/authorize?audience=http://deyesinspectionservicetest-ycndnvorvq-uc.a.run.app&scope=offline_access&response_type=code&client_id=CmLxt9y7JGEYLYpKkXdrpLRTE1QOkg98&redirect_uri=https://deyesinspectionservicetest-ycndnvorvq-uc.a.run.app/callback’,allow_redirects=False,headers={

'Referer Policy': 'strict-origin-when-cross-origin'


please let us know either how we can use one authorization code for multiple token for multiple users or a way by which we can generate authorization code everytime usig python script for every new user.

You should only be using a single code for a one-time transaction with a single user.

You should consider using one of our SDKs. Checkout our quickstart to find a tutorial that works for you.

Hi Dan,
we are implementing auth0 for our rest api’s so we need to generate and provide token and access token to the frontend application, we are able to generate token and refresh token for a user but to generate authorization code its require browser login into auth0 account to verify which is not possible in the backend application. is there any way we can generate authorization code without login into browser or any way we can provide login cred into the authorization code generation request.

It sounds like you may be using the wrong flow. Why can’t a user login through the browser?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.