
    C                          S SK r S SKrS rS rg)    Nc                 .    [         R                   " U 5      $ )zGet password from user.

Override this function with a different logic if you are using this library
outside a CLI.

Args:
    text: message for the password prompt.

Returns: password string.
)getpass)texts    1platform/bq/third_party/google_reauth/_helpers.pyget_user_passwordr      s     ??4      c                  >    [         R                  R                  5       $ )a?  Check if we are in an interractive environment.

If the rapt token needs refreshing, the user needs to answer the
challenges.
If the user is not in an interractive environment, the challenges can not
be answered and we just wait for timeout for no reason.

Returns: True if is interactive environment, False otherwise.
)sysstdinisatty r   r   is_interactiver   "   s     99r   )r   r
   r   r   r   r   r   <module>r      s      
!r   