Extends the WP REST API using JSON Web Tokens as an authentication method.
GS JWT plugin provides to encode and decode JSON Web Tokens (JWT), conforming to RFC 7519.
GET OTP and send notification by mail or SMS service
Support and Requests please in Github: https://github.com/gauravin213/gs-jwt
REQUIREMENTS
PHP
Minimum PHP version: 5.3.0
PHP HTTP Authorization Header enable
Most of the shared hosting has disabled the HTTP Authorization Header by default.
To enable this option you’ll need to edit your .htaccess file adding the following
WPENGINE
To enable this option you’ll need to edit your .htaccess file adding the following
CONFIGURATION
The JWT needs to Add constant in the wp-confige.php file
Namespace and Endpoints
When the plugin is activated, a new namespace is added
Also, two new endpoints are added to this namespace
Endpoint | HTTP Verb
/wp-json/gs-jwt/v1/login | POST
/wp-json/gs-jwt/v1/token/validate | POST
/wp-json/gs-jwt/v1/get-otp | POST
/wp-json/gs-jwt/v1/verify-otp | POST
/wp-json/gs-jwt/v1/register_user | POST
/wp-json/gs-jwt/v1/register_userbymobile | POST
USAGE
- Get JSON web token
Request method:
Reponse
- Validate JSON web token
Request method:
Reponse
- Get otp by billing mobile number
Request method:
Reponse
- Verify otp and mobile number to login
Request method:
Reponse
- Register user
Request method:
Reponse
- Register user by mobile number

评论0