Fix: create app record if it doesn't exist when creating app auth