def auth_token_validation(auth_token, *args, **kwargs): auth_status = get_auth_status(auth_token) if auth_status != 'valid': return get_auth_response(auth_status) return func(auth_token, *args, **kwargs)
def authorize(auth_token): auth_token = str(auth_token) return get_auth_response(get_auth_status(auth_token))