Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(authentication-oauth): Make oAuth authentication work with cookie-session #2614

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Conversation

cciocov
Copy link
Contributor

@cciocov cciocov commented Apr 28, 2022

This PR make authentication-oauth module work with cookie-session instead of express-session. The former does not have a save() or destroy() method, so this PR adds a check before trying to call req.session.save(). It also fixes a bug with a previous PR where a call to req.session.destroy() would still be made, even if there is no such method.

@daffl daffl merged commit 9f10bfc into feathersjs:dove Apr 29, 2022
@daffl
Copy link
Member

daffl commented Apr 29, 2022

Thank you! Will go out with the next prerelease 😄

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants