mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 13:38:33 +03:00
removes recurring log
This commit is contained in:
@@ -84,8 +84,9 @@ def authenticate_user(access_token) -> (bool, str):
|
|||||||
if FIREBASE_OAUTH_ENABLED:
|
if FIREBASE_OAUTH_ENABLED:
|
||||||
try:
|
try:
|
||||||
return firebase_login_attempt(access_token)
|
return firebase_login_attempt(access_token)
|
||||||
except exceptions.FirebaseError as e:
|
except exceptions.FirebaseError:
|
||||||
logger.warning(f"Error verifying ID token: {str(e)[:80]}...")
|
# used a non-Firebase token, fallback to Google OAuth
|
||||||
|
pass
|
||||||
|
|
||||||
# https://cloud.google.com/docs/authentication/token-types#access
|
# https://cloud.google.com/docs/authentication/token-types#access
|
||||||
if not isinstance(access_token, str) or len(access_token) < 10:
|
if not isinstance(access_token, str) or len(access_token) < 10:
|
||||||
|
|||||||
Reference in New Issue
Block a user