Skip to content

Commit dd2d39a

Browse files
committed
settr
1 parent 6eaf2fe commit dd2d39a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

fasthtml/oauth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ def client_secret(self):
129129
payload = dict(iss=self.team_id, iat=now, exp=now + 86400 * 180, aud='https://appleid.apple.com', sub=self.client_id)
130130
return jwt.encode(payload, self.private_key, algorithm='ES256', headers={'kid': self.key_id})
131131

132+
@client_secret.setter
133+
def client_secret(self, value): pass
134+
132135
def get_info(self, token=None):
133136
"Decode user info from the ID token"
134137
if token: self.token = token

nbs/api/08_oauth.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@
267267
" payload = dict(iss=self.team_id, iat=now, exp=now + 86400 * 180, aud='https://appleid.apple.com', sub=self.client_id)\n",
268268
" return jwt.encode(payload, self.private_key, algorithm='ES256', headers={'kid': self.key_id})\n",
269269
" \n",
270+
" @client_secret.setter\n",
271+
" def client_secret(self, value): pass\n",
272+
" \n",
270273
" def get_info(self, token=None):\n",
271274
" \"Decode user info from the ID token\"\n",
272275
" if token: self.token = token\n",

0 commit comments

Comments
 (0)