tangled
alpha
login
or
join now
ligo.at
/
core
6
fork
atom
decentralized and customizable links page on top of atproto
ligo.at
atproto
link-in-bio
python
uv
6
fork
atom
overview
issues
2
pulls
pipelines
don't crash when user cancels auth
nauta.one
1 month ago
0cd5bb22
b6598f10
+4
1 changed file
expand all
collapse all
unified
split
src
oauth.py
+4
src/oauth.py
···
131
131
async def oauth_callback():
132
132
state = request.args["state"]
133
133
authserver_iss = request.args["iss"]
134
134
+
if "code" not in request.args:
135
135
+
message = f"{request.args['error']}: {request.args['error_description']}"
136
136
+
current_app.logger.debug(message)
137
137
+
return redirect(url_for("page_login"))
134
138
authorization_code = request.args["code"]
135
139
136
140
auth_request = get_auth_request(session)