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 d133447 commit 0672c72Copy full SHA for 0672c72
sample/device_flow_sample.py
@@ -56,6 +56,10 @@
56
# Ideally you should wait here, in order to save some unnecessary polling
57
# input("Press Enter after you successfully login from another device...")
58
result = app.acquire_token_by_device_flow(flow) # By default it will block
59
+ # You can follow this instruction to shorten the block time
60
+ # https://msal-python.readthedocs.io/en/latest/#msal.PublicClientApplication.acquire_token_by_device_flow
61
+ # or you may even turn off the blocking behavior,
62
+ # and then keep calling acquire_token_by_device_flow(flow) in your own customized loop.
63
64
if "access_token" in result:
65
print(result["access_token"])
0 commit comments