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

Auth.js OAuth 2.0 #17

Closed
wants to merge 5 commits into from
Closed

Auth.js OAuth 2.0 #17

wants to merge 5 commits into from

Conversation

jpsantosbh
Copy link
Contributor

Fixes the PKCE for OAuth 2.0 issue replacing the OAUTH client liv with Auth.js

@jpsantosbh
Copy link
Contributor Author

We just need on implementation so let's discuss on this PR before merging it

app.use('/api/auth/*', ExpressAuth(authConfig))
app.use(authSession)

app.listen(process.env.PORT || 3000, () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is where I get a little pedantic maybe, but I have not seen express app like this, started this way, is it the only way to import the esm or use the libs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently and unfortunately, yes...

I agreed with that most existing code at this point don't feature that. But that is because this esm is getting more popular now. And there is a strong push for being the default.

But I guess we could also make our code an es module as better alternative

@ryanwi
Copy link
Collaborator

ryanwi commented Jan 16, 2024

example app just added to auth.js nextauthjs/next-auth#9570

@jpsantosbh jpsantosbh marked this pull request as draft January 29, 2024 22:27
@jpsantosbh jpsantosbh closed this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants