def is_api(auth_entry):
 return ((auth_entry == AUTH_ENTRY_LOGIN_API) or (auth_entry == AUTH_ENTRY_REGISTER_API))

def is_api ( auth_entry ) : return ( ( auth_entry == AUTH_ENTRY_LOGIN_API ) or ( auth_entry == AUTH_ENTRY_REGISTER_API ) )
returns whether the auth entry point is via an api call .