Add grant api login

main
nocode 1 year ago
parent 8a951d644a
commit 09b5fb1734
  1. 1
      app/Http/Controllers/Api/AuthApiController.php

@ -73,6 +73,7 @@ class AuthApiController extends BaseAuthApiController
$data['downline_register'] = $this->getLinkParam('downline_register', $agentUser->code); $data['downline_register'] = $this->getLinkParam('downline_register', $agentUser->code);
$data['promotional_link'] = $this->getLinkParam('promotional_link', $agentUser->code); $data['promotional_link'] = $this->getLinkParam('promotional_link', $agentUser->code);
$data['role'] = $user->user_type; $data['role'] = $user->user_type;
$data['grant'] = $myAgent->grant;
// Creating a token without scopes... // Creating a token without scopes...
$token = $user->createToken($user->id . ' token ' . time(), ['*'])->accessToken; $token = $user->createToken($user->id . ' token ' . time(), ['*'])->accessToken;

Loading…
Cancel
Save