-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add low-level auth lib + nextjs integration #750
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few piece of minor feedback, and one thing we ought to change now: hex
-> base64url
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes look good!
const [host, port] = connectConfig.address; | ||
const baseUrl = `${ | ||
connectConfig.tlsSecurity === "insecure" ? "http" : "https" | ||
}://${host}:${port}/db/${connectConfig.database}/ext/auth`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaclarke There is missing slash /
new URL("foo", "http://localhost:3000/auth").toString()
// 'http://localhost:3000/foo'
new URL("foo", "http://localhost:3000/auth/").toString()
// 'http://localhost:3000/auth/foo'
This causes wrong builtin urls to be created (beside other)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, you're right. Thanks for catching that.
No description provided.