Skip to content

Add request_params to login_url() - #248

Open
rxchitrx wants to merge 1 commit into
zerodha:masterfrom
rxchitrx:login-url-redirect-params
Open

rxchitrx wants to merge 1 commit into
zerodha:masterfrom
rxchitrx:login-url-redirect-params

Conversation

@rxchitrx

@rxchitrx rxchitrx commented Oct 7, 2026

Copy link
Copy Markdown

Closes #212.

login_url() had no way to pass through redirect params, so I added an optional request_params dict. It gets urlencoded and appended as redirect_params, per the login flow docs. Empty/None keeps the old URL, so existing callers are unaffected.

Checked the output against the docs example (some=X&more=Y becomes redirect_params=some%3DX%26more%3DY) and the existing test_login_url still passes.

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.

Add request_params to KiteConnect.login_url()

1 participant