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

Auth0 SDK checks for null values instead of false #27

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

thijsvdanker
Copy link
Contributor

The Auth0 SDK checks for null values when determining if a user exists.
https://github.com/auth0/auth0-PHP/blob/2.1.2/src/Auth0.php#L276

If the default value for getting a value out of the session store is set to false

        if ($this->user === null) {
            $this->exchangeCode();
        }

will never get executed and the user will not be logged in.

@glena
Copy link
Contributor

glena commented Jan 22, 2016

it was fixed in the laravel sdk (https://github.com/auth0/laravel-auth0/blob/master/src/Auth0/Login/LaravelSessionStore.php)

which version are you using?

@thijsvdanker
Copy link
Contributor Author

The 2.x branch (for Laravel 5.1)

@glena
Copy link
Contributor

glena commented Jan 22, 2016

let me push a revision for 2.x to handle this right. I will let you know

@thijsvdanker
Copy link
Contributor Author

thx

@thijsvdanker
Copy link
Contributor Author

ps: this PR is against 2.x.x-dev so it should be able to merge right in?

@glena
Copy link
Contributor

glena commented Jan 22, 2016

Sorry, I thought it was an issue! let me review it

glena added a commit that referenced this pull request Jan 22, 2016
Auth0 SDK checks for null values instead of false
@glena glena merged commit b218c9b into auth0:2.x.x-dev Jan 22, 2016
@glena
Copy link
Contributor

glena commented Jan 22, 2016

👏 sorry for the confusion, let me release the new revision and thanks

@glena
Copy link
Contributor

glena commented Jan 22, 2016

check 2.2.1

@thijsvdanker
Copy link
Contributor Author

Thx!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants