• Resolved kanupriya

    (@kanupriya)


    Hi Ali,
    First of all thanks for amazing set of plugin. I implemented lots of things for my API even I created new function (endpoints to submit form), But I stuck in login and get logged in user info. Please clear my few queries so I can complete my API.

    1.) Login to website is using ” generate_auth_cookie ” ?
    2.) I created new endpoint , While run that endpoint I need logged -in user info (email) .
    3.) How Logout works?

    Thanks in advance!

    https://www.ads-software.com/plugins/json-api-user/

Viewing 1 replies (of 1 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    1 and 2. you can use the cookie to find out the user_id.

    3. Ween creating cookie, you can choose to create cookie for less time by defining ‘minutes’ variable. plz see documentation for this. Once you create cookie, it remains valid for that much time. default is 14 days.

Viewing 1 replies (of 1 total)
  • The topic ‘Login to website’ is closed to new replies.