from appwrite.client import Client
from appwrite.services.account import Account
project_id = os.getenv("PROJECT_ID")
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1')
client.set_project(project_id)
account = Account(client)
email = "asd@gmail.com"
password = "password123"
session = account.create_email_password_session(email=email, password=password)
session_id = session['$id']
client.set_session(session_id)
response = account.create_verification(
url='https://example.com'
)
print(response)
This doesnt work, even when I use correct credentials, I seem to recall that when working locally the sdk doesnt apply sessions and requires cookies?
Whats the correct method to make this work aside from using an API key, I keep getting User (role: guests) missing scope (account)
that might not even be the right endpoint actually, trying to send a verification email to the user
An error occurred: User (role: guests) missing scope (account)
im using the python sdk, cant get it to work and searched for other users that asked this on the server here too
Recommended threads
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...
- [SOLVED] Production down - createExecuti...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...