mercredi 16 octobre 2019

Create token in laravel passport without verify auth

I already use login by active directory and after verify username and password from active directory if correct i want to create access token in laravel passport. But i can't create token without verify Auth in laravel.

i try this code after verify from active directory

$success['token'] =  createToken($email)->accessToken;

Call to undefined function App\Http\Controllers\API\createToken()

How to create access token in laravel passport without using Auth?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire