appwrite/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md

15 lines
423 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
from appwrite.client import Client
2024-02-21 11:31:50 +00:00
from appwrite.enums import AuthenticatorType
2024-02-05 12:40:51 +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
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
2024-02-05 12:40:51 +00:00
users = Users(client)
2024-02-21 11:31:50 +00:00
result = users.delete_authenticator(
2024-02-24 11:34:42 +00:00
user_id = '<USER_ID>',
2024-02-27 08:12:00 +00:00
type = AuthenticatorType.TOTP
2024-02-21 11:31:50 +00:00
)