-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: make alby oauth url customizable #37
Conversation
signed-off-by: pavan joshi <pavanj914@gmail.com>
signed-off-by: pavan joshi <pavanj914@gmail.com>
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.
utACK
do we need a validation of url here? |
no it's for developers not end-users. So they are smart and can deal with errors that would happen. |
i have tested it with the yarn link things work well! |
great. can you add a note of the option to the readme? |
added |
README.md
Outdated
@@ -225,6 +225,7 @@ const authClient = new auth.OAuth2User({ | |||
|
|||
const authUrl = authClient.generateAuthURL({ | |||
code_challenge_method: "S256", | |||
authorizeUrl: "https://getalby.com/oauth" // endpoint for authorization (replace with the appropriate URL based on the environment) |
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.
if it's put in the example like this, users will think they need to pass it. Should it be commented out here?
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.
resolved
and actually we need two options: the authorize URL and the API URL? |
@bumi the API url is already configurable (it is called base url) |
No description provided.