diff --git a/src/Auth0/Login/Auth0Service.php b/src/Auth0/Login/Auth0Service.php index 1cf4c947..868b2d45 100644 --- a/src/Auth0/Login/Auth0Service.php +++ b/src/Auth0/Login/Auth0Service.php @@ -26,7 +26,7 @@ private function getSDK() { } /** - * Logouts the user from the SDK + * Logs the user out from the SDK. */ public function logout() { $this->getSDK()->logout(); @@ -34,6 +34,7 @@ public function logout() { /** * If the user is logged in, returns the user information + * * @return array with the User info as described in https://docs.auth0.com/user-profile and the user access token */ public function getUser() { diff --git a/src/Auth0/Login/LaravelSessionStore.php b/src/Auth0/Login/LaravelSessionStore.php index 6472d5f8..4b9eaaf2 100644 --- a/src/Auth0/Login/LaravelSessionStore.php +++ b/src/Auth0/Login/LaravelSessionStore.php @@ -6,7 +6,7 @@ class LaravelSessionStore { /** - * Persists $value on $_SESSION, idetified by $key. + * Persists $value on $_SESSION, identified by $key. * * @see Auth0SDK\BaseAuth0 * @@ -40,7 +40,7 @@ public function delete($key) { /** * Constructs a session var name. * - * @param strign $key + * @param string $key * * @return string */ diff --git a/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php b/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php index 9b168d41..97fa4e59 100644 --- a/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php +++ b/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php @@ -44,10 +44,10 @@ public function handle($request, \Closure $next) return \Response::make("Unauthorized user", 401); } - // lets log the user in so it is accesible + // lets log the user in so it is accessible \Auth::login($user); - // continue the excecution + // continue the execution return $next($request); } diff --git a/src/controllers/Auth0Controller.php b/src/controllers/Auth0Controller.php index 5c77a45a..4ef09ceb 100644 --- a/src/controllers/Auth0Controller.php +++ b/src/controllers/Auth0Controller.php @@ -28,9 +28,9 @@ public function callback() { $auth0User = $this->userRepository->getUserByUserInfo($profile); if ($auth0User) { - // If we have, we are going to log him in, buut, if + // If we have a user, we are going to log him in, but if // there is an onLogin defined we need to allow the Laravel developer - // to implement the user as he wants an also let him store it + // to implement the user as he wants an also let him store it. if ($service->hasOnLogin()) { $user = $service->callOnLogin($auth0User); } else {