chore(oauth): Make provider typing optional in redirect_post_login
Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
This commit is contained in:
parent
d13c377848
commit
2571876d66
1 changed files with 3 additions and 1 deletions
|
|
@ -310,7 +310,9 @@ def get_email(data: dict) -> str:
|
|||
return data.get("email") or data.get("upn") or data.get("unique_name")
|
||||
|
||||
|
||||
def redirect_post_login(desk_user: bool, redirect_to: str | None = None, provider: str = None):
|
||||
def redirect_post_login(
|
||||
desk_user: bool, redirect_to: str | None = None, provider: str | None = None
|
||||
):
|
||||
frappe.local.response["type"] = "redirect"
|
||||
|
||||
if not redirect_to:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue