Skip to content

Commit b8d95f9

Browse files
committed
kwargs
1 parent b37338e commit b8d95f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fasthtml/oauth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def login_link(self, req):
107107

108108
# %% ../nbs/api/08_oauth.ipynb
109109
@patch
110-
def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None, access_type="online"):
110+
def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None, **kwargs):
111111
"Get a login link for this client"
112112
if not scope: scope=self.scope
113113
if not state: state=getattr(self, 'state', None)
114-
return self.prepare_request_uri(self.base_url, redirect_uri, scope, state=state)
114+
return self.prepare_request_uri(self.base_url, redirect_uri, scope, state=state, **kwargs)
115115

116116
# %% ../nbs/api/08_oauth.ipynb
117117
def redir_url(request, redir_path, scheme=None):

nbs/api/08_oauth.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@
214214
"source": [
215215
"#| export\n",
216216
"@patch\n",
217-
"def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None, access_type=\"online\"):\n",
217+
"def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None, **kwargs):\n",
218218
" \"Get a login link for this client\"\n",
219219
" if not scope: scope=self.scope\n",
220220
" if not state: state=getattr(self, 'state', None)\n",
221-
" return self.prepare_request_uri(self.base_url, redirect_uri, scope, state=state)"
221+
" return self.prepare_request_uri(self.base_url, redirect_uri, scope, state=state, **kwargs)"
222222
]
223223
},
224224
{

0 commit comments

Comments
 (0)