• Resolved amishbhavsar

    (@amishbhavsar)


    I am using WPLMS Theme which recently switched to React JS and JSON Web Token (JWT) based login and the User Switching plugin isn’t working on it.
    Do you have plans to support JWT?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Is JWT used for the actual login mechanism or just for authentication to REST API requests?

    If it’s used for the actual login mechanism then no, sorry, I can’t support custom login mechanisms as the maintenance burden is just too high.

    If it’s just used for REST API authentication then there’s no reason User Switching shouldn’t fundamentally work, you should ask the author of the theme to take a look.

    Write your jwt to a cookie with a property for user id then on init request check to see if ID changes and if it does re-auth based on current user.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User switching does not work on React JS and JSON Web Token (JWT) based login’ is closed to new replies.