Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some typo's in the comments. #18

Merged
merged 1 commit into from
Oct 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Auth0/Login/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ private function getSDK() {

}
/**
* Logouts the user from the SDK
* Logs the user out from the SDK.
*/
public function logout() {
$this->getSDK()->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() {
Expand Down
4 changes: 2 additions & 2 deletions src/Auth0/Login/LaravelSessionStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class LaravelSessionStore {


/**
* Persists $value on $_SESSION, idetified by $key.
* Persists $value on $_SESSION, identified by $key.
*
* @see Auth0SDK\BaseAuth0
*
Expand Down Expand Up @@ -40,7 +40,7 @@ public function delete($key) {
/**
* Constructs a session var name.
*
* @param strign $key
* @param string $key
*
* @return string
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Auth0/Login/Middleware/Auth0JWTMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions src/controllers/Auth0Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down