Title: Login Example
Last modified: May 29, 2020

---

# Login Example

 *  Resolved [finderlars](https://wordpress.org/support/users/finderlars/)
 * (@finderlars)
 * [6 years ago](https://wordpress.org/support/topic/login-example/)
 * Hello, i’m trying to use your plugin for study purposes and i’m not being able
   to generate the token via POST Request. I already set the decryption key, enabled
   login, etc but this is what i’ve got from Postman:
 *     ```
       {
           "code": "rest_no_route",
           "message": "No route was found matching the URL and request method",
           "data": {
               "status": 404
           }
       }
       ```
   
 * It wasn’t clear enough for me what endpoints your plugin provides. If you could
   please provide any examples, it’d be great.
 * Thanks in advance!
    Finder

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [6 years ago](https://wordpress.org/support/topic/login-example/#post-12915161)
 * Hello,
 * Currently, the plugin does not generate tokens. But, I have this feature on my
   road map.
 * I think that I will add it to the top of the todo list, and I will let you know
   when this is implemented. So, by the end of the next week, I will come with updates.
 * Can you please explain more your scenario?
 * Thank you.
 *  Thread Starter [finderlars](https://wordpress.org/support/users/finderlars/)
 * (@finderlars)
 * [6 years ago](https://wordpress.org/support/topic/login-example/#post-12915389)
 * Hello,
 * Thanks for the fast response and attention. I am using another plugin to create
   the token and i was going to combine it with your plugin for authentication. 
   If your plugin was able to create the token itself, then i could discard the 
   other one.
 * I’ve exhaustively searched for authentication plugins and i found that your plugin
   is very well done. So please have a look into this suggestions that are based
   on what i’ve seen in another plugins:
    - Token creation from endpoint
    - Token validation from endpoint
    - It would be nice if we could create users with different roles instead of 
      a pre-set one
    - A “forgot the password” mechanism for login. I found just one plugin which
      does this but it is buggy. It relies on an endpoint which you send your email
      with a 4-digit code, and another endpoint where you send the 4-digit code 
      along with your email and new password.
    - Thanks
 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/login-example/#post-12984454)
 * Hello,
 * Version 2.0.0 was released.
 * New routes have been added for generating and refreshing tokens.
 * – for Token creation from endpoint:
 *     ```
       POST /simple-jwt-login/v1/auth&email=eYOUR_EMAIL&password=YOUR_PASSWORD
       ```
   
 * and for Refreshing:
 *     ```
       POST /simple-jwt-login/v1/auth/refresh&jwt=YOUR_EXPIRED_JWT_HERE
       ```
   
 * Please have a look and let me know if it fits your needs.
 * Also, I will come with updates for the part where you can create users with different
   roles.
 * For the forgot password mechanism, I think that this is not a feature that suits
   for this plugin. I think you can use the hooks that this plugin for this part.
   If you need more hooks, don’t hesitate to write to me.
 * Also, if you like this plugin, please don’t forget to rate it.
 * Best regards.
 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/login-example/#post-13012253)
 * Hello,
 * I’ve just released version 2.1.0 and added a new feature that allows you to create
   users with different roles.
 * You can create multiple AUTH Codes, and set a custom role for each one of them.
 * After that, when you create new users, simply add the AUTH code in your request,
   and the user will be created with this new role.
 * I hope this helps you.
 * Please don’t forget to rate this plugin.
 * Best regards,
    Nicu.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Login Example’ is closed to new replies.

 * ![](https://ps.w.org/simple-jwt-login/assets/icon-256x256.png?rev=2106097)
 * [Simple JWT Login – Allows you to use JWT on REST endpoints.](https://wordpress.org/plugins/simple-jwt-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-jwt-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-jwt-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-jwt-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-jwt-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-jwt-login/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/login-example/#post-13012253)
 * Status: resolved