fix for auth with code