I need to develop a login / registration functionality in my ongoing project. So i come to know that for these functionalities need to use JSON Web Tokens.
The structure is like this.
Params For Login Request:
username: 'admin',
password: 'password'
Response on Success:
token : ?
userId: ?
userName: ?
Name: ?
Email: ?
....
Response on Failure:
status: ?
message: ?
So, how to create these jwt token in WordPress REST API and how to use these tokens in React response ? Need to use redux method or it will be work with fetch method ?
No responses yet.