Skip to content

Commit

Permalink
chore: remove google auth verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Jan 28, 2025
1 parent dc8e5e3 commit 49f1254
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cg/server/endpoints/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
cached_session = cachecontrol.CacheControl(session)


def verify_google_token(token):
request = google_requests.Request(session=cached_session)
return id_token.verify_oauth2_token(id_token=token, request=request)


def is_public(route_function):
@wraps(route_function)
def public_endpoint(*args, **kwargs):
Expand Down Expand Up @@ -53,6 +48,7 @@ def before_request():
)

jwt_token = auth_header.split("Bearer ")[-1]
# replace
try:
user_data = verify_google_token(jwt_token)
except (exceptions.OAuthError, ValueError) as e:
Expand Down

0 comments on commit 49f1254

Please sign in to comment.