I have an Angular 4 app, using Laravel as API, and i want to add a function , where i can switch between users for admin users.
i cant use this because i need a token:
public function autologin(Request $request, $id) {
$credentials = Auth::loginUsingId($id);
return $credentials;
}
I didn't find any post about this, or in the documentation I using oauth2 for authentication (http://ift.tt/2g9Rb5K) how can i achieve that ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire