File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/routes/docs/products/auth/server-side-rendering Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -408,8 +408,8 @@ from appwrite.client import Client
408
408
from appwrite.services.account import Account
409
409
410
410
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
413
413
)
414
414
415
415
account = Account(client)
@@ -582,7 +582,7 @@ def oauth_success():
582
582
583
583
try:
584
584
# Create the session using the Appwrite client
585
- session = account.createSession (user_id, secret)
585
+ session = account.create_session (user_id, secret)
586
586
587
587
# Set the session cookie
588
588
res = make_response(jsonify({'success': True}))
You can’t perform that action at this time.
0 commit comments