fix app namespace and update comments

This commit is contained in:
2025-07-17 17:00:46 +03:30
parent 89a7eed847
commit f1ecb8a2a8
8 changed files with 24 additions and 9 deletions
+13 -4
View File
@@ -12,15 +12,24 @@ Authenticate WordPress user via json web token from Laravel Application.
## Usage
Send users to:
https://your-wp-site.com/dabestaniha/login?laravel_login_token=TOKEN
https://your-wp-site.com/dabestaniha/login/?token=TOKEN
With required data encoded in the token.
Payload JWT:
```json
{
"email": "user@example.com",
"name": "Test User",
"exp": 1752575400
"iat" : 1752671371,
"jti" : "---qwe---",
"iss" : "https://api.test",
"exp" : 1763039371,
"aud" : "https://api.test",
"data" : {
"id" : 1,
"name" : "Test User",
"mobile" : "9123456789",
"email" : "user@gmail.com",
"username" : "test-user"
}
}
```