disciple-tools-theme icon indicating copy to clipboard operation
disciple-tools-theme copied to clipboard

#2346 - Sign-In Workflow With Auth Token Or Cookie Redirect Payload

Open kodinkat opened this issue 1 year ago • 1 comments

  • fixes: #2346

kodinkat avatar Aug 08 '24 11:08 kodinkat

POST to http://multisite.lwp/wp-json/jwt-auth/v1/token/validate with body param: auto_refresh_token: true

returns date.token

{
    "code": "jwt_auth_valid_token",
    "data": {
        "status": 200,
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL211bHRpc2l0ZS5sd3AiLCJpYXQiOjE3Mjc5NTkyMTUsIm5iZiI6MTcyNzk1OTIxNSwiZXhwIjoxNzI4NTY4NTIwLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxIn19fQ.trtJCjmBrzAPKkSQjEgVJsfUYJmn2-KGmMaIFLd43NU"
    }
}

@todo, and endpoint for refresh

corsacca avatar Oct 03 '24 14:10 corsacca