Python 3.10 is now available in preview.

google.appengine.api.oauth.get_current_user

Returns the User on whose behalf the request was made.

_scope The custom OAuth scope or an iterable of scopes at least one of which is accepted.

User

OAuthRequestError The request was not a valid OAuth request.
OAuthServiceFailureError An unknown error occurred.