title: Retrieve idToken and refreshToken in Firebase-admin Python SDK
body: <p>I need to retrieve idToken and refreshToken of a user(<code>firebase_admin._user_mgt.UserRecord object</code>). This is the function I use to create a new user with flask.</p>
  
  <pre><code>@app.route('/user/SignUp')
  def user_signup():
      """ Sign up new users """
  
      email = request.args.get('email')
      password = request.args.get('password')
  
      try:
          new_user = auth.create_user(
              email=email,
              email_verified=False,
              password=password,
              disabled=False)
          print ("- - - new user created - - - ")
  
  
      except Exception as e:
          print ("- - - create_user error : {} - - - ".format(str(e)))
          return jsonify(
              error=str(e),
              status="FAILED"
          )
  </code></pre>
  
  <p>If we use bellow web API endpoint it responses with both keys <code>https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser</code></p>
  
  <p>docs :
  <a href="https://firebase.google.com/docs/reference/rest/auth/#section-create-email-password" rel="nofollow noreferrer">https://firebase.google.com/docs/reference/rest/auth/#section-create-email-password</a></p>
  
  <p>Is there a way to achieve this without using the web API?</p>
  
  <p>Thanks. </p>