Skip to content

Commit 42fbedf

Browse files
committed
fixes #660
1 parent 0208e86 commit 42fbedf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fasthtml/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ 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):
110+
def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None, access_type="online"):
111111
"Get a login link for this client"
112112
if not scope: scope=self.scope
113113
if not state: state=getattr(self, 'state', None)

nbs/api/08_oauth.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"metadata": {},
203203
"outputs": [],
204204
"source": [
205-
"# cli = GoogleAppClient.from_file('/Users/jhoward/subs_aai/_nbs/oauth-test/client_secret.json')"
205+
"# cli = GoogleAppClient.from_file('client_secret.json')"
206206
]
207207
},
208208
{
@@ -214,7 +214,7 @@
214214
"source": [
215215
"#| export\n",
216216
"@patch\n",
217-
"def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None):\n",
217+
"def login_link(self:WebApplicationClient, redirect_uri, scope=None, state=None, access_type=\"online\"):\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",

0 commit comments

Comments
 (0)