appwrite/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md

13 lines
336 B
Markdown
Raw Normal View History

2024-02-19 04:12:47 +00:00
from appwrite.client import Client
2024-02-21 11:31:50 +00:00
from appwrite.enums import AuthenticationFactor
2024-02-19 04:12:47 +00:00
client = Client()
2024-02-21 11:31:50 +00:00
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('5df5acd0d48c2') # Your project ID
2024-02-19 04:12:47 +00:00
account = Account(client)
2024-02-21 11:31:50 +00:00
result = account.create2_fa_challenge(
factor = AuthenticationFactor.TOTP
)