Help with Storing and Sending Session ID for Frappe Authentication in Toddle

  • khanmomodou11-1301502178149797950

    khanmomodou11

    5 months ago

    Hi everyone! I'm integrating Toddle with a Frappe backend and need help managing session-based authentication. After logging in with email and password, I receive a session ID (sid) from Frappe, which I need to send as a secure cookie in each request.

    Does anyone have experience with securely storing and using session IDs like this in Toddle, or know a way to handle this through HTTP-only cookies? Thanks in advance!
  • max.kayr-1301516608539332670

    Max

    5 months ago

    Hi! If this is the only auth method that your backend supports, you need to make sure to disable toddle's proxy in the API calls. Otherwise, the cookie is not set in the browser. Then try to do the login again and check the browser dev tools. The cookie should be set automatically