The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
107 stars 36 forks source link

How do we implement session management and user registration ? #59

Closed sravani612 closed 6 months ago

nikkothari22 commented 6 months ago

Hey @sravani612

Frappe manages session via cookies.

Here's a video about authenticating with Frappe React SDK:

https://youtu.be/1OBoMcoaaSg?si=nRwQnJHU1HFfOPje

sravani612 commented 6 months ago

I watched the video, but I couldn't find any information on user registration. Could you please provide guidance on how to proceed with registering users?

kossanah commented 6 months ago

Users are created in Frappe admin or enable sign up for self registration on the portal

nikkothari22 commented 6 months ago

I watched the video, but I couldn't find any information on user registration. Could you please provide guidance on how to proceed with registering users?

You'll have to make a POST API call to the sign up API if you want a sign up page on your React app.

sravani612 commented 6 months ago

Understood, thank you for the response

I watched the video, but I couldn't find any information on user registration. Could you please provide guidance on how to proceed with registering users?

You'll have to make a POST API call to the sign up API if you want a sign up page on your React app.

Understood, thank you for the response