php function to generate jwt
-
i have my custom login endpoint which logs in users using mobile number and otp (rest_route=/rad/v1/otp-login).
i want simple-jwt-login plugin a function to generate jwt.
then i control user login in my custom endpoint and return this jwt if user logged in with mobile and otp successfully.(mobile number is stored in usermeta. like digits plugin. i mean that no email or password is required to login.)
i also provide bellow ways to login:
– login with mobile number and otp.
– login with username and password.
– login with email and password.
- The topic ‘php function to generate jwt’ is closed to new replies.