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

Allow empty redirect path #112

Open
Emilgardis opened this issue Mar 13, 2023 · 0 comments
Open

Allow empty redirect path #112

Emilgardis opened this issue Mar 13, 2023 · 0 comments

Comments

@Emilgardis
Copy link
Member

Emilgardis commented Mar 13, 2023

/// The `url` crate converts empty paths into "/" (such as `https://example.com` into `https://example.com/`),
/// which means that you'll need to add `https://example.com/` to your redirect URIs (note the "trailing" slash) if you want to use an empty path.
///
/// To avoid this, use a path such as `https://example.com/twitch/register` or similar instead, where the `url` crate would not add a trailing `/`.
pub fn new(
client_id: impl Into<ClientId>,
client_secret: impl Into<ClientSecret>,
redirect_url: url::Url,
) -> UserTokenBuilder {

this is a todo I want to try to fix

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

No branches or pull requests

1 participant