8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7121b26 commit af9b316Copy full SHA for af9b316
docs/examples/two_factor_auth.rst
@@ -25,11 +25,13 @@ For example:
25
def my_two_factor_function():
26
code = ''
27
while not code:
28
+ # The user could accidentally press Enter before being ready,
29
+ # let's protect them from doing that.
30
code = prompt('Enter 2FA code: ')
31
return code
32
33
g = github3.login('sigmavirus24', 'my_password',
34
two_factor_callback=my_two_factor_function)
35
-Then if the API tells github3.py it requires a Two Factor Authentication code,
-github3.py will call ``my_two_factor_function`` and prompt you for it.
36
+Then each the API tells github3.py it requires a Two Factor Authentication
37
+code, github3.py will call ``my_two_factor_function`` which prompt you for it.
0 commit comments