• Resolved heretsu

    (@heretsu)


    Hey guys, I just installed the plugin and configurated it but I’m missing a JWT Token, where I can get this and where do I have to store it?

    I’ve tried it with: define('JWT_AUTH_SECRET_KEY', 'random-security-key');

    whereas random-security-key is replaced with my SECURE_AUTH_KEY already existing in my wp-config file.

    When inserting my URL (https://elithairtransplant.com/german/?rest_route=/simple-jwt-login/v1/autologin&jwt=JWT) into a new browser tab, I get the following error:

    {"success":false,"data":{"message":"Wrong Request.","errorCode":23}}

    I guess it might be because of a wrong JWT Token.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    The error that you get is generated by the fact that the JWT is not OK. You can validate you JWT on https://jwt.io/

    For this plugin, there is no need to define anything. I try to make the User Interface configuration as easy as possible.

    Currently, the plugin does not generate a JWT. The plugin just uses already generated JWT token to log in users.

    I’m working on a version 2.0 for this plugin, and I will add the functionality to generate a JWT.

    Hopefully, by the end of the week, I will come back with updates.

    Best regards.

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello,

    Version 2.0.0 was released.

    New routes have been added for generating and refreshing tokens.

    
    POST /simple-jwt-login/v1/auth
    

    and

    
    POST /simple-jwt-login/v1/auth/refresh
    

    Please have a look and let me know if it fits your needs.

    Also, if you like this plugin, please don’t forget to rate it.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting JWT Token’ is closed to new replies.