Closed GoldenDeo closed 3 years ago
How to add own field in login responce?
Example: I have - { "access_token": "access_token", "expires_in": 86400, "token_type": "Bearer", "scope": null, "refresh_token": "refresh_token" }
I need - { "access_token": "access_token", "expires_in": 86400, "token_type": "Bearer", "scope": null, "refresh_token": "refresh_token", "custom_field": "data" }
created new controller that extended filsh\yii2\oauth2server\controllers\RestController
How to add own field in login responce?
Example: I have - { "access_token": "access_token", "expires_in": 86400, "token_type": "Bearer", "scope": null, "refresh_token": "refresh_token" }
I need - { "access_token": "access_token", "expires_in": 86400, "token_type": "Bearer", "scope": null, "refresh_token": "refresh_token", "custom_field": "data" }