Skip to content

Commit 4ba777c

Browse files
updated casing for python
1 parent a402859 commit 4ba777c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/docs/products/auth/server-side-rendering/+page.markdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ from appwrite.client import Client
408408
from appwrite.services.account import Account
409409

410410
client = (Client()
411-
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
412-
.setProject('<PROJECT_ID>') # Your project ID
411+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
412+
.set_project('<PROJECT_ID>') # Your project ID
413413
)
414414

415415
account = Account(client)
@@ -582,7 +582,7 @@ def oauth_success():
582582

583583
try:
584584
# Create the session using the Appwrite client
585-
session = account.createSession(user_id, secret)
585+
session = account.create_session(user_id, secret)
586586

587587
# Set the session cookie
588588
res = make_response(jsonify({'success': True}))

0 commit comments

Comments
 (0)