Title: Why use &#8220;Auth Code&#8221; for registration?
Last modified: September 16, 2020

---

# Why use “Auth Code” for registration?

 *  Resolved [chantaspell](https://wordpress.org/support/users/chantaspell/)
 * (@chantaspell)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/why-use-auth-code-for-registration/)
 * Hi, Thanks for this plugin, it’s great! (Have given 5* review)
 * I am working on registering and logging in users on a REACT app with a WordPress
   backend and am confused about something:
 * When registering a new user, what’s the difference between using a route with
   the Auth Code and a route without it?
 * Forgive the noobish question, but doesn’t having the AUTH_KEY_VALUE on the front
   side mean it’s insecure and therefor worthless? Am I missing something obvious?
 * [https://mydomain.com/?rest_route=/simple-jwt-login/v1/users&email=NEW_USER_EMAIL&password=NEW_USER_PASSWORD&mYaUtHkEy=AUTH_KEY_VALUE](https://mydomain.com/?rest_route=/simple-jwt-login/v1/users&email=NEW_USER_EMAIL&password=NEW_USER_PASSWORD&mYaUtHkEy=AUTH_KEY_VALUE)
 * [https://mydomain.com/?rest_route=/simple-jwt-login/v1/users&email=NEW_USER_EMAIL&password=NEW_USER_PASSWORD](https://mydomain.com/?rest_route=/simple-jwt-login/v1/users&email=NEW_USER_EMAIL&password=NEW_USER_PASSWORD)
 * Many thanks

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

 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/why-use-auth-code-for-registration/#post-13417210)
 * Hello [@chantaspell](https://wordpress.org/support/users/chantaspell/),
 * First of all, thank you for your review.
 * The Auth Key gives comes with three strong points:
    1. It gives extra security
   to your endpoint(it acts like a secret key). In order to achieve this, you should
   use an intermediate script (on the backend) and from the frontend, you should
   call this script instead of the API endpoint. 2. You can create different user
   types based on the API Key that is provided. 3. You can limit the period of creating
   users by setting an expiration date to an API key
 * Best regards,
    Nicu.
 *  Thread Starter [chantaspell](https://wordpress.org/support/users/chantaspell/)
 * (@chantaspell)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/why-use-auth-code-for-registration/#post-13419306)
 * Hi thanks for taking the time to reply! Actually, I should have thought about
   putting it in an intermediate script server side…pretty dense of me!
 * Cheers
    T

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

The topic ‘Why use “Auth Code” for registration?’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [chantaspell](https://wordpress.org/support/users/chantaspell/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/why-use-auth-code-for-registration/#post-13419306)
 * Status: resolved