Fixed ValueError to AuthCanceled and AuthFailed