Skip to content

Commit

Permalink
fix social store bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liyu001989 committed Aug 21, 2020
1 parent 6358f4c commit 2ac474a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Api/AuthorizationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public function socialStore($type, SocialAuthorizationRequest $request)
break;
}

$token = auth('api')->login($user);

return $this->respondWithToken($token)->setStatusCode(201);
}

Expand Down

0 comments on commit 2ac474a

Please sign in to comment.